fix: rename tokens to lamports

This commit is contained in:
Michael Vines
2019-03-05 17:52:13 -08:00
parent 09b6d2b764
commit be8821e0d0
12 changed files with 68 additions and 68 deletions

View File

@ -1,6 +1,6 @@
/*
Example of using the Budget program to perform a time-lock payment of 50
tokens from account1 to account2.
lamports from account1 to account2.
*/
//eslint-disable-next-line import/no-commonjs
@ -72,7 +72,7 @@ showBalance()
const transaction = solanaWeb3.SystemProgram.createAccount(
account1.publicKey,
contractFunds.publicKey,
50, // number of tokens to transfer
50, // number of lamports to transfer
0,
solanaWeb3.BudgetProgram.programId,
);
@ -85,7 +85,7 @@ showBalance()
const transaction = solanaWeb3.SystemProgram.createAccount(
account1.publicKey,
contractState.publicKey,
1, // account1 pays 1 token to hold the contract state
1, // account1 pays 1 lamport to hold the contract state
solanaWeb3.BudgetProgram.space,
solanaWeb3.BudgetProgram.programId,
);