Skip to content

Commit

Permalink
fix: use new syntax in gcb test
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots authored and jstarry committed Mar 4, 2020
1 parent 9542023 commit 3b6be34
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/get-confirmed-block.test.js
Expand Up @@ -11,19 +11,19 @@ test('verify getConfirmedBlock', () => {
const recentBlockhash = account1.publicKey.toBase58(); // Fake recentBlockhash

// Create a couple signed transactions
const transfer0 = SystemProgram.transfer(
account0.publicKey,
account1.publicKey,
123,
);
const transfer0 = SystemProgram.transfer({
fromPubkey: account0.publicKey,
toPubkey: account1.publicKey,
lamports: 123,
});

const transaction0 = new Transaction({recentBlockhash}).add(transfer0);
transaction0.sign(account0);
const transfer1 = SystemProgram.transfer(
account2.publicKey,
account3.publicKey,
456,
);
const transfer1 = SystemProgram.transfer({
fromPubkey: account2.publicKey,
toPubkey: account3.publicKey,
lamports: 456,
});

let transaction1 = new Transaction({recentBlockhash}).add(transfer1);
transaction1.sign(account2);
Expand Down

0 comments on commit 3b6be34

Please sign in to comment.