We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee30e4 commit 049453bCopy full SHA for 049453b
src/lib/nodes/eth/utils.ts
@@ -65,7 +65,7 @@ export function normalizeErc20Transaction(
65
): Erc20Transaction {
66
const gasPrice = 'gasPrice' in transaction ? transaction.gasPrice : 0
67
const effectiveGasPrice = 'effectiveGasPrice' in transaction ? transaction.effectiveGasPrice : 0
68
- const gasUsed = 'gasUsed' in receipt ? receipt.gasUsed : 0
+ const gasUsed = receipt && 'gasUsed' in receipt ? receipt.gasUsed : 0
69
70
const fee = utils.calculateFee(gasUsed.toString(), gasPrice.toString())
71
const direction = transaction.from.toLowerCase() === address.toLowerCase() ? 'from' : 'to'
0 commit comments