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

@ -58,9 +58,9 @@ export class SystemProgram {
}
/**
* Generate a Transaction that moves lamports from one account to another
* Generate a Transaction that transfers lamports from one account to another
*/
static move(from: PublicKey, to: PublicKey, amount: number): Transaction {
static transfer(from: PublicKey, to: PublicKey, amount: number): Transaction {
const dataLayout = BufferLayout.struct([
BufferLayout.u32('instruction'),
BufferLayout.ns64('amount'),