Skip to content

Commit

Permalink
fix: waitForTransactionReceipt proper eth_call usage (#4339)
Browse files Browse the repository at this point in the history
* fix: waitForTransactionReceipt proper eth_call usage

* chore: tweaks

---------

Co-authored-by: Tom Meagher <tom@meagher.co>
  • Loading branch information
AndriyAntonenko and tmm authored Nov 5, 2024
1 parent b6861a4 commit d0d0963
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-trains-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/core": patch
---

Fixed bug in `waitForTransactionReceipt`, where transaction data wasn't passed to `'eth_call'` method as part of getting the revert reason.
1 change: 1 addition & 0 deletions packages/core/src/actions/waitForTransactionReceipt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export async function waitForTransactionReceipt<
const action_call = getAction(client, call, 'call')
const code = await action_call({
...(txn as any),
data: txn.input,
gasPrice: txn.type !== 'eip1559' ? txn.gasPrice : undefined,
maxFeePerGas: txn.type === 'eip1559' ? txn.maxFeePerGas : undefined,
maxPriorityFeePerGas:
Expand Down

0 comments on commit d0d0963

Please sign in to comment.