Skip to content

Commit 952a1fd

Browse files
yann300Aniket-Engg
authored andcommitted
fix using toBN
1 parent 37f23af commit 952a1fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/remix-ui/run-tab/src/lib/components/mainnet.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ export function MainnetPrompt(props: MainnetProps) {
2626

2727
const onMaxFeeChange = (value: string) => {
2828
const maxFee = value
29-
// @ts-ignore
30-
if (toBN(props.network.lastBlock.baseFeePerGas).gt(toBN(toWei(maxFee, 'Gwei')))) {
29+
if (toBigInt(props.network.lastBlock.baseFeePerGas) > toBigInt(toWei(maxFee, 'Gwei'))) {
3130
setTransactionFee(intl.formatMessage({id: 'udapp.transactionFeeText'}))
3231
props.updateGasPriceStatus(false)
3332
props.updateConfirmSettings(true)

0 commit comments

Comments
 (0)