diff --git a/libs/remix-ui/debugger-ui/src/lib/vm-debugger/global-variables.tsx b/libs/remix-ui/debugger-ui/src/lib/vm-debugger/global-variables.tsx index 58c82adedd..c4cf4f3abe 100644 --- a/libs/remix-ui/debugger-ui/src/lib/vm-debugger/global-variables.tsx +++ b/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})`) }