File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
libs/remix-lib/src/execution Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22import { EventManager } from '../eventManager'
33import type { Transaction as InternalTransaction } from './txRunner'
44import Web3 from 'web3'
5- import { toBigInt } from 'web3-utils'
5+ import { toBigInt , toHex } from 'web3-utils'
66
77export class TxRunnerWeb3 {
88 event
@@ -27,11 +27,11 @@ export class TxRunnerWeb3 {
2727 }
2828 if ( txFee ) {
2929 if ( txFee . baseFeePerGas ) {
30- tx . maxPriorityFeePerGas = this . getWeb3 ( ) . utils . toHex ( this . getWeb3 ( ) . utils . toWei ( txFee . maxPriorityFee , 'gwei' ) )
31- tx . maxFeePerGas = this . getWeb3 ( ) . utils . toHex ( this . getWeb3 ( ) . utils . toWei ( txFee . maxFee , 'gwei' ) )
30+ tx . maxPriorityFeePerGas = toHex ( BigInt ( this . getWeb3 ( ) . utils . toWei ( txFee . maxPriorityFee , 'gwei' ) ) )
31+ tx . maxFeePerGas = toHex ( BigInt ( this . getWeb3 ( ) . utils . toWei ( txFee . maxFee , 'gwei' ) ) )
3232 tx . type = '0x2'
3333 } else {
34- tx . gasPrice = this . getWeb3 ( ) . utils . toHex ( this . getWeb3 ( ) . utils . toWei ( txFee . gasPrice , 'gwei' ) )
34+ tx . gasPrice = toHex ( BigInt ( this . getWeb3 ( ) . utils . toWei ( txFee . gasPrice , 'gwei' ) ) )
3535 tx . type = '0x1'
3636 }
3737 }
You can’t perform that action at this time.
0 commit comments