fix: use new syntax in gcb test

This commit is contained in:
Tyera Eulberg 2020-03-03 14:34:11 -07:00 committed by Michael Vines
parent 6ed2bad9d0
commit 698269cfcf
1 changed files with 10 additions and 10 deletions

View File

@ -11,19 +11,19 @@ test('verify getConfirmedBlock', () => {
const recentBlockhash = account1.publicKey.toBase58(); // Fake recentBlockhash const recentBlockhash = account1.publicKey.toBase58(); // Fake recentBlockhash
// Create a couple signed transactions // Create a couple signed transactions
const transfer0 = SystemProgram.transfer( const transfer0 = SystemProgram.transfer({
account0.publicKey, fromPubkey: account0.publicKey,
account1.publicKey, toPubkey: account1.publicKey,
123, lamports: 123,
); });
const transaction0 = new Transaction({recentBlockhash}).add(transfer0); const transaction0 = new Transaction({recentBlockhash}).add(transfer0);
transaction0.sign(account0); transaction0.sign(account0);
const transfer1 = SystemProgram.transfer( const transfer1 = SystemProgram.transfer({
account2.publicKey, fromPubkey: account2.publicKey,
account3.publicKey, toPubkey: account3.publicKey,
456, lamports: 456,
); });
let transaction1 = new Transaction({recentBlockhash}).add(transfer1); let transaction1 = new Transaction({recentBlockhash}).add(transfer1);
transaction1.sign(account2); transaction1.sign(account2);