Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Apr 28, 2024
1 parent 0d141f1 commit 3f36d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/actions/waitForTransactionReceipt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ export async function waitForTransactionReceipt<
)
const txn = await action_getTransaction({ hash: receipt.transactionHash })
const action_call = getAction(client, call, 'call')
const code = (await action_call({
const code = await action_call({
...(txn as any),
gasPrice: txn.type !== 'eip1559' ? txn.gasPrice : undefined,
maxFeePerGas: txn.type === 'eip1559' ? txn.maxFeePerGas : undefined,
maxPriorityFeePerGas:
txn.type === 'eip1559' ? txn.maxPriorityFeePerGas : undefined,
}))
})
const reason = code?.data
? hexToString(`0x${code.data.substring(138)}`)
: 'unknown reason'
Expand Down

0 comments on commit 3f36d70

Please sign in to comment.