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 37f23af commit 952a1fdCopy full SHA for 952a1fd
libs/remix-ui/run-tab/src/lib/components/mainnet.tsx
@@ -26,8 +26,7 @@ export function MainnetPrompt(props: MainnetProps) {
26
27
const onMaxFeeChange = (value: string) => {
28
const maxFee = value
29
- // @ts-ignore
30
- if (toBN(props.network.lastBlock.baseFeePerGas).gt(toBN(toWei(maxFee, 'Gwei')))) {
+ if (toBigInt(props.network.lastBlock.baseFeePerGas) > toBigInt(toWei(maxFee, 'Gwei'))) {
31
setTransactionFee(intl.formatMessage({id: 'udapp.transactionFeeText'}))
32
props.updateGasPriceStatus(false)
33
props.updateConfirmSettings(true)
0 commit comments