Commit 8b049b81 authored by Liana Husikyan's avatar Liana Husikyan Committed by Aniket

linter

parent b2eebb1b
......@@ -16,8 +16,9 @@ export const GlobalVariables = ({ block, receipt, tx }) => {
'msg.value': tx.value + ' Wei',
'tx.origin': tx.from
}
if (block.baseFeePerGas)
if (block.baseFeePerGas) {
globals['block.basefee'] = (new BN(block.baseFeePerGas.replace('0x', ''), 'hex')).toString(10) + ` Wei (${block.baseFeePerGas})`
)
return (
<div id='globalvariable' data-id='globalvariable'>
......
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