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
// 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);