Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed Apr 26, 2024
1 parent 407a4b7 commit 0b8c2ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { IBlock, IEvmNetworkStatus, IEvmNetwork, IBaseEvmNetworkConfiguration }
import { evmNetworkStatuses } from '../stores'
import { CoinType } from '@iota/sdk/out/types'
import { EvmNetworkId, Web3Provider } from '../types'
import { Converter } from '@core/utils'

export class BaseEvmNetwork implements IEvmNetwork {
public readonly provider: Web3Provider
Expand Down Expand Up @@ -66,7 +65,7 @@ export class BaseEvmNetwork implements IEvmNetwork {

async getGasPrice(): Promise<bigint> {
const gasPrice = await this.provider.eth.getGasPrice()
return Converter.decimalToHex(Number(gasPrice), true) // TODO Fix type
return BigInt(gasPrice)
}

async getLatestBlock(): Promise<IBlock> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ jest.mock('../../network/stores/networks.store', () => ({
getIscChain: jest.fn((_) => destinationNetwork),
}))

// jest.mock('../../layer-2/actions/getGasPriceForNetwork', () => ({
// getGasPriceForNetwork: jest.fn((_) => 1_000_000_000_000n),
// }))

jest.mock('../../layer-2/actions/getGasFeeForLayer1ToLayer2Transaction', () => ({
getGasFeeForLayer1ToLayer2Transaction: jest.fn(({ type }) => FALLBACK_ESTIMATED_GAS[type]),
}))
Expand Down

0 comments on commit 0b8c2ed

Please sign in to comment.