fix using toBN

pull/4211/head
yann300 1 year ago committed by Aniket
parent 847d4ddd62
commit 93781b736f
  1. 3
      libs/remix-ui/run-tab/src/lib/components/mainnet.tsx

@ -26,8 +26,7 @@ export function MainnetPrompt(props: MainnetProps) {
const onMaxFeeChange = (value: string) => {
const maxFee = value
// @ts-ignore
if (toBN(props.network.lastBlock.baseFeePerGas).gt(toBN(toWei(maxFee, 'Gwei')))) {
if (toBigInt(props.network.lastBlock.baseFeePerGas) > toBigInt(toWei(maxFee, 'Gwei'))) {
setTransactionFee(intl.formatMessage({id: 'udapp.transactionFeeText'}))
props.updateGasPriceStatus(false)
props.updateConfirmSettings(true)

Loading…
Cancel
Save