fix: upstream authorize fixes

This commit is contained in:
Tyera Eulberg
2020-01-02 09:56:15 -07:00
committed by Michael Vines
parent bed42ac26b
commit 0b5bd167d4
3 changed files with 5 additions and 2 deletions

View File

@ -785,7 +785,9 @@ test('multi-instruction transaction', async () => {
const connection = new Connection(url, 'recent');
await connection.requestAirdrop(accountFrom.publicKey, LAMPORTS_PER_SOL);
expect(await connection.getBalance(accountFrom.publicKey)).toBe(LAMPORTS_PER_SOL);
expect(await connection.getBalance(accountFrom.publicKey)).toBe(
LAMPORTS_PER_SOL,
);
await connection.requestAirdrop(accountTo.publicKey, 21);
expect(await connection.getBalance(accountTo.publicKey)).toBe(21);

View File

@ -106,7 +106,7 @@ test('authorize', () => {
type,
);
expect(transaction.keys).toHaveLength(2);
expect(transaction.keys).toHaveLength(3);
expect(transaction.programId).toEqual(StakeProgram.programId);
// TODO: Validate transaction contents more
});