fix: transfers require 'to' account to be readwrite (#543)

This commit is contained in:
Justin Starry
2019-11-05 19:07:38 -05:00
committed by Michael Vines
parent 3f38e89886
commit 58550733fb
2 changed files with 8 additions and 219 deletions

View File

@ -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,