feat: add support for more system instructions

This commit is contained in:
Justin Starry
2020-05-09 18:33:36 +08:00
committed by Michael Vines
parent 09d1b7f39f
commit c584fbdf39
5 changed files with 323 additions and 44 deletions

View File

@ -132,7 +132,7 @@ test('get program accounts', async () => {
},
]);
let transaction = SystemProgram.assign({
fromPubkey: account0.publicKey,
accountPubkey: account0.publicKey,
programId: programId.publicKey,
});
await sendAndConfirmTransaction(connection, transaction, account0);
@ -176,7 +176,7 @@ test('get program accounts', async () => {
},
]);
transaction = SystemProgram.assign({
fromPubkey: account1.publicKey,
accountPubkey: account1.publicKey,
programId: programId.publicKey,
});