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:
@ -129,6 +129,7 @@ describe('load BPF Rust program', () => {
|
||||
transaction,
|
||||
[payerAccount],
|
||||
{
|
||||
commitment: 'max',
|
||||
skipPreflight: true,
|
||||
},
|
||||
);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user