fix: fallback to connection commitment when confirming transactions (#13285)

* fix: fallback to connection commitment when confirming transactions

* chore: bump

* chore: fix tests
This commit is contained in:
Justin Starry
2020-10-30 01:22:53 +08:00
committed by GitHub
parent 636ae12621
commit 7b3f96ab30
3 changed files with 4 additions and 6 deletions

View File

@ -129,6 +129,7 @@ describe('load BPF Rust program', () => {
transaction,
[payerAccount],
{
commitment: 'max',
skipPreflight: true,
},
);

View File

@ -1351,7 +1351,7 @@ describe('token methods', () => {
return;
}
const connection = new Connection(url);
const connection = new Connection(url, 'recent');
const newAccount = new Account().publicKey;
let testToken: Token;
@ -1364,7 +1364,6 @@ describe('token methods', () => {
const payerAccount = new Account();
await connection.confirmTransaction(
await connection.requestAirdrop(payerAccount.publicKey, 100000000000),
'single',
);
const mintOwner = new Account();
@ -1402,7 +1401,7 @@ describe('token methods', () => {
new u64(1),
);
await connection.confirmTransaction(testSignature);
await connection.confirmTransaction(testSignature, 'max');
testOwner = accountOwner;
testToken = token;