Skip to content

Commit

Permalink
hotfix: Adding 400ms delay to `getTransactionReceipt/eth_getTransac…
Browse files Browse the repository at this point in the history
…tionByHash` for OffchainLabs/nitro#2336
  • Loading branch information
0xRektora committed Jun 9, 2024
1 parent 9192cf0 commit 64af90e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/providers/src.ts/json-rpc-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ export class JsonRpcProvider extends BaseProvider {
return [ "eth_getTransactionByHash", [ params.transactionHash ] ];

case "getTransactionReceipt":
console.log('[+] @ethers-arbitrum-hotfix package. Adding 400ms delay to getTransaction/eth_getTransactionByHash')
await new Promise(resolve => setTimeout(resolve, 400));
return [ "eth_getTransactionReceipt", [ params.transactionHash ] ];

case "call": {
Expand Down

0 comments on commit 64af90e

Please sign in to comment.