diff --git a/.changeset/red-trains-switch.md b/.changeset/red-trains-switch.md new file mode 100644 index 0000000000..bf6523eb55 --- /dev/null +++ b/.changeset/red-trains-switch.md @@ -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. diff --git a/packages/core/src/actions/waitForTransactionReceipt.ts b/packages/core/src/actions/waitForTransactionReceipt.ts index 4203fac7e7..5ac8fcdb20 100644 --- a/packages/core/src/actions/waitForTransactionReceipt.ts +++ b/packages/core/src/actions/waitForTransactionReceipt.ts @@ -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: