s/move/transfer in system program to match solana
This commit is contained in:
committed by
Michael Vines
parent
7f02185998
commit
c1bbb9b291
@ -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'),
|
||||
|
Reference in New Issue
Block a user