diff --git a/apps/remix-ide/src/blockchain/blockchain.tsx b/apps/remix-ide/src/blockchain/blockchain.tsx index dc0dc02a4d..be5d1b2817 100644 --- a/apps/remix-ide/src/blockchain/blockchain.tsx +++ b/apps/remix-ide/src/blockchain/blockchain.tsx @@ -16,7 +16,7 @@ import { logBuilder, cancelUpgradeMsg, cancelProxyMsg, addressToString } from "@ const { txFormat, txExecution, typeConversion, txListener: Txlistener, TxRunner, TxRunnerWeb3, txHelper } = execution const { txResultHelper } = helpers const { resultToRemixTx } = txResultHelper -const packageJson = require('../../../../package.json') +import * as packageJson from '../../../../package.json' const _paq = window._paq = window._paq || [] //eslint-disable-line @@ -792,7 +792,7 @@ export class Blockchain extends Plugin { const hhlogs = await this.web3().eth.getHHLogsForTx(txResult.transactionHash) if (hhlogs && hhlogs.length) { - let finalLogs =
console.log:
+ const finalLogs =
console.log:
{ hhlogs.map((log) => { let formattedLog diff --git a/apps/remix-ide/src/blockchain/providers/injected.ts b/apps/remix-ide/src/blockchain/providers/injected.ts index 3c34ae39f0..557ea32896 100644 --- a/apps/remix-ide/src/blockchain/providers/injected.ts +++ b/apps/remix-ide/src/blockchain/providers/injected.ts @@ -1,4 +1,4 @@ -const Web3 = require('web3') +import Web3 from 'web3' import { hashPersonalMessage } from '@ethereumjs/util' import { ExecutionContext } from '../execution-context' diff --git a/apps/remix-ide/src/blockchain/providers/node.ts b/apps/remix-ide/src/blockchain/providers/node.ts index f80a968f37..fbe0159c19 100644 --- a/apps/remix-ide/src/blockchain/providers/node.ts +++ b/apps/remix-ide/src/blockchain/providers/node.ts @@ -1,6 +1,6 @@ -const Web3 = require('web3') +import Web3 from 'web3' import { hashPersonalMessage } from '@ethereumjs/util' -const Personal = require('web3-eth-personal') +import { Personal } from 'web3-eth-personal' import { ExecutionContext } from '../execution-context' import Config from '../../config' diff --git a/apps/remix-ide/src/blockchain/providers/vm.ts b/apps/remix-ide/src/blockchain/providers/vm.ts index 9ae0461d20..d23a72f205 100644 --- a/apps/remix-ide/src/blockchain/providers/vm.ts +++ b/apps/remix-ide/src/blockchain/providers/vm.ts @@ -1,7 +1,7 @@ import Web3 from 'web3' import { privateToAddress, hashPersonalMessage } from '@ethereumjs/util' import BN from 'bn.js' -const { extend } = require('@remix-project/remix-simulator') +import { extend } from '@remix-project/remix-simulator' import { ExecutionContext } from '../execution-context' export class VMProvider {