Commit 29cac476 authored by gxkai's avatar gxkai

fix: debugger

parent efe8b728
......@@ -17,7 +17,7 @@ export const GlobalVariables = ({ block, receipt, tx }) => {
'tx.origin': tx.from
}
if (block.baseFeePerGas) {
globals['block.basefee'] = (new BN(block.baseFeePerGas.replace('0x', ''), 'hex')).toString(10) + ` Wei (${block.baseFeePerGas})`
globals['block.basefee'] = (new BN(block.baseFeePerGas.toString().replace('0x', ''), 'hex')).toString(10) + ` Wei (${block.baseFeePerGas})`
}
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment