feat: add Keypair class and deprecate Account (#17098)

* feat: add Keypair class and deprecate Account

* chore: fix lint issues

* chore: rename TransactionSigner to Signer
This commit is contained in:
Justin Starry
2021-05-07 16:59:51 +08:00
committed by GitHub
parent 0b5167bf51
commit f43f0afa55
20 changed files with 339 additions and 213 deletions

View File

@@ -3,7 +3,7 @@ import invariant from 'assert';
import {expect} from 'chai';
import {
Account,
Keypair,
Connection,
Transaction,
SystemProgram,
@@ -33,9 +33,9 @@ describe('Transaction Payer', () => {
}
it('transaction-payer', async () => {
const accountPayer = new Account();
const accountFrom = new Account();
const accountTo = new Account();
const accountPayer = Keypair.generate();
const accountFrom = Keypair.generate();
const accountTo = Keypair.generate();
await helpers.airdrop({
connection,