fix: transfers require 'to' account to be readwrite (#543)
This commit is contained in:
committed by
Michael Vines
parent
3f38e89886
commit
58550733fb
@ -201,7 +201,9 @@ export class SystemProgram {
|
||||
return new Transaction().add({
|
||||
keys: [
|
||||
{pubkey: from, isSigner: true, isDebitable: true},
|
||||
{pubkey: to, isSigner: false, isDebitable: false},
|
||||
// TEMP FIX: a better proposed solution is here:
|
||||
// https://github.com/solana-labs/solana-web3.js/issues/542
|
||||
{pubkey: to, isSigner: false, isDebitable: true},
|
||||
],
|
||||
programId: SystemProgram.programId,
|
||||
data,
|
||||
|
Reference in New Issue
Block a user