Skip to content

Commit

Permalink
feat: retry rpc wait for transaction 200 times instead of 100
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Sep 15, 2022
1 parent ef1645f commit 3bc9118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export class RpcProvider implements ProviderInterface {

public async waitForTransaction(txHash: BigNumberish, retryInterval: number = 8000) {
let onchain = false;
let retries = 100;
let retries = 200;

while (!onchain) {
const successStates = ['ACCEPTED_ON_L1', 'ACCEPTED_ON_L2', 'PENDING'];
Expand Down

0 comments on commit 3bc9118

Please sign in to comment.