s/move/transfer in system program to match solana

This commit is contained in:
Tyera Eulberg
2019-04-11 18:20:22 -07:00
committed by Michael Vines
parent 7f02185998
commit c1bbb9b291
6 changed files with 19 additions and 19 deletions

View File

@ -20,12 +20,12 @@ test('createAccount', () => {
// TODO: Validate transaction contents more
});
test('move', () => {
test('transfer', () => {
const from = new Account();
const to = new Account();
let transaction;
transaction = SystemProgram.move(from.publicKey, to.publicKey, 123);
transaction = SystemProgram.transfer(from.publicKey, to.publicKey, 123);
expect(transaction.keys).toHaveLength(2);
expect(transaction.programId).toEqual(SystemProgram.programId);