add more check

pull/5370/head
yann300 2 years ago committed by Aniket
parent 82df9c8bf0
commit 0dbcafa237
  1. 2
      libs/remix-ui/debugger-ui/src/lib/vm-debugger/global-variables.tsx

@ -17,7 +17,7 @@ export const GlobalVariables = ({ block, receipt, tx, className }) => {
'msg.value': tx && (tx.value + ' Wei'),
'tx.origin': tx && tx.from
}
if (block.baseFeePerGas) {
if (block && block.baseFeePerGas) {
globals['block.basefee'] = block && (Web3.utils.toBN(block.baseFeePerGas).toString(10) + ` Wei (${block.baseFeePerGas})`)
}

Loading…
Cancel
Save