Skip to content

Commit

Permalink
fix: waitForTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
badurinantun committed Jul 18, 2022
1 parent 1476461 commit 4f0c00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export class SequencerProvider implements ProviderInterface {
// eslint-disable-next-line no-await-in-loop
const res = await this.getTransactionStatus(txHash);

const successStates = ['ACCEPTED_ON_L1', 'ACCEPTED_ON_L2', 'PENDING'];
const successStates = ['ACCEPTED_ON_L1', 'ACCEPTED_ON_L2'];
const errorStates = ['REJECTED', 'NOT_RECEIVED'];

if (successStates.includes(res.tx_status)) {
Expand Down

0 comments on commit 4f0c00b

Please sign in to comment.