From 593ae55f56bfb39af6e42576b705b8f87d2f86b6 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 3 Sep 2024 11:35:43 +0200 Subject: [PATCH 1/2] update web3.js import --- apps/etherscan/src/app/views/VerifyView.tsx | 2 +- apps/remix-ide/src/app/providers/injected-custom-provider.tsx | 2 +- .../src/app/providers/injected-ephemery-testnet-provider.tsx | 2 +- apps/remix-ide/src/app/tabs/debugger-tab.js | 2 +- apps/remix-ide/src/blockchain/execution-context.js | 2 +- apps/remix-ide/src/blockchain/providers/injected.ts | 2 +- apps/remix-ide/src/blockchain/providers/node.ts | 2 +- apps/remix-ide/src/blockchain/providers/vm.ts | 2 +- libs/ghaction-helper/src/methods.ts | 2 +- libs/remix-debug/src/cmdline/index.ts | 2 +- libs/remix-debug/src/init.ts | 2 +- libs/remix-lib/src/execution/txRunnerWeb3.ts | 2 +- libs/remix-lib/src/init.ts | 2 +- libs/remix-simulator/test/accounts.ts | 2 +- libs/remix-simulator/test/blocks.ts | 2 +- libs/remix-simulator/test/events.ts | 2 +- libs/remix-simulator/test/misc.ts | 2 +- libs/remix-simulator/test/transactions.ts | 2 +- libs/remix-tests/src/deployer.ts | 2 +- libs/remix-tests/src/run.ts | 2 +- libs/remix-tests/src/runTestFiles.ts | 2 +- libs/remix-tests/src/runTestSources.ts | 2 +- libs/remix-tests/src/testRunner.ts | 2 +- libs/remix-tests/tests/testRunner.spec.ts | 2 +- libs/remix-ui/debugger-ui/src/lib/api/debugger-api.ts | 2 +- libs/remix-ui/run-tab/src/lib/actions/deploy.ts | 2 +- libs/remix-ui/run-tab/src/lib/actions/events.ts | 2 +- libs/remix-ui/run-tab/src/lib/types/execution-context.d.ts | 2 +- .../src/templates/gnosisSafeMultisig/scripts/web3-lib.ts | 2 +- .../src/templates/ozerc1155/scripts/web3-lib.ts | 2 +- .../src/templates/ozerc20/scripts/web3-lib.ts | 2 +- .../src/templates/ozerc721/scripts/web3-lib.ts | 2 +- .../src/templates/playground/scripts/web3-lib.ts | 2 +- .../src/templates/remixDefault/scripts/web3-lib.ts | 2 +- .../src/templates/zeroxErc20/scripts/web3-lib.ts | 2 +- 35 files changed, 35 insertions(+), 35 deletions(-) diff --git a/apps/etherscan/src/app/views/VerifyView.tsx b/apps/etherscan/src/app/views/VerifyView.tsx index f41e9203afd..e8f40110727 100644 --- a/apps/etherscan/src/app/views/VerifyView.tsx +++ b/apps/etherscan/src/app/views/VerifyView.tsx @@ -1,5 +1,5 @@ import React, {useEffect, useRef, useState} from 'react' -import Web3 from 'web3' +import { Web3 } from 'web3' import {PluginClient} from '@remixproject/plugin' import {CustomTooltip} from '@remix-ui/helper' diff --git a/apps/remix-ide/src/app/providers/injected-custom-provider.tsx b/apps/remix-ide/src/app/providers/injected-custom-provider.tsx index bb41eeac4ae..a00604b3d96 100644 --- a/apps/remix-ide/src/app/providers/injected-custom-provider.tsx +++ b/apps/remix-ide/src/app/providers/injected-custom-provider.tsx @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { InjectedProviderDefault } from './injected-provider-default' export class InjectedCustomProvider extends InjectedProviderDefault { diff --git a/apps/remix-ide/src/app/providers/injected-ephemery-testnet-provider.tsx b/apps/remix-ide/src/app/providers/injected-ephemery-testnet-provider.tsx index dd5e8266b1b..4b25986ba5b 100644 --- a/apps/remix-ide/src/app/providers/injected-ephemery-testnet-provider.tsx +++ b/apps/remix-ide/src/app/providers/injected-ephemery-testnet-provider.tsx @@ -1,6 +1,6 @@ import * as packageJson from '../../../../../package.json' import { InjectedCustomProvider } from './injected-custom-provider' -import Web3 from 'web3' +import { Web3 } from 'web3' const profile = { name: 'injected-ephemery-testnet-provider', diff --git a/apps/remix-ide/src/app/tabs/debugger-tab.js b/apps/remix-ide/src/app/tabs/debugger-tab.js index 9c99051ef8d..9560713ffee 100644 --- a/apps/remix-ide/src/app/tabs/debugger-tab.js +++ b/apps/remix-ide/src/app/tabs/debugger-tab.js @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { DebuggerUI } from '@remix-ui/debugger-ui' // eslint-disable-line import { DebuggerApiMixin } from '@remix-ui/debugger-ui' import { ViewPlugin } from '@remixproject/engine-web' diff --git a/apps/remix-ide/src/blockchain/execution-context.js b/apps/remix-ide/src/blockchain/execution-context.js index fd127fb20c5..cf82b96ad82 100644 --- a/apps/remix-ide/src/blockchain/execution-context.js +++ b/apps/remix-ide/src/blockchain/execution-context.js @@ -1,6 +1,6 @@ /* global ethereum */ 'use strict' -import Web3 from 'web3' +import { Web3 } from 'web3' import { execution } from '@remix-project/remix-lib' import EventManager from '../lib/events' import { bytesToHex } from '@ethereumjs/util' diff --git a/apps/remix-ide/src/blockchain/providers/injected.ts b/apps/remix-ide/src/blockchain/providers/injected.ts index 8ef55f80935..9e10ebc68d0 100644 --- a/apps/remix-ide/src/blockchain/providers/injected.ts +++ b/apps/remix-ide/src/blockchain/providers/injected.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { hashPersonalMessage, isHexString, bytesToHex } 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 9c7c5383078..6c316e05ff6 100644 --- a/apps/remix-ide/src/blockchain/providers/node.ts +++ b/apps/remix-ide/src/blockchain/providers/node.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { hashPersonalMessage, isHexString, bytesToHex } from '@ethereumjs/util' import { Personal } from 'web3-eth-personal' import { ExecutionContext } from '../execution-context' diff --git a/apps/remix-ide/src/blockchain/providers/vm.ts b/apps/remix-ide/src/blockchain/providers/vm.ts index c2e6448da54..81f74137f9f 100644 --- a/apps/remix-ide/src/blockchain/providers/vm.ts +++ b/apps/remix-ide/src/blockchain/providers/vm.ts @@ -1,4 +1,4 @@ -import Web3, { FMT_BYTES, FMT_NUMBER, LegacySendAsyncProvider } from 'web3' +import { Web3, FMT_BYTES, FMT_NUMBER, LegacySendAsyncProvider } from 'web3' import { fromWei, toBigInt } from 'web3-utils' import { privateToAddress, hashPersonalMessage, isHexString, bytesToHex } from '@ethereumjs/util' import { extend, JSONRPCRequestPayload, JSONRPCResponseCallback } from '@remix-project/remix-simulator' diff --git a/libs/ghaction-helper/src/methods.ts b/libs/ghaction-helper/src/methods.ts index 793d904db8a..d7ece2b6c61 100644 --- a/libs/ghaction-helper/src/methods.ts +++ b/libs/ghaction-helper/src/methods.ts @@ -3,7 +3,7 @@ import { ethers } from "ethers" import { Provider } from '@remix-project/remix-simulator' import { getArtifactsByContractName } from './artifacts-helper' import { SignerWithAddress } from './signer' -import Web3 from "web3" +import { Web3 } from "web3" const providerConfig = { fork: global.fork || null, diff --git a/libs/remix-debug/src/cmdline/index.ts b/libs/remix-debug/src/cmdline/index.ts index 2bad4a431ed..da56ba00b94 100644 --- a/libs/remix-debug/src/cmdline/index.ts +++ b/libs/remix-debug/src/cmdline/index.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Debugger } from '../debugger/debugger' import { EventEmitter } from 'events' diff --git a/libs/remix-debug/src/init.ts b/libs/remix-debug/src/init.ts index 4ddafff0212..8217c0808aa 100644 --- a/libs/remix-debug/src/init.ts +++ b/libs/remix-debug/src/init.ts @@ -1,5 +1,5 @@ 'use strict' -import Web3, { Web3PluginBase } from 'web3' +import { Web3, Web3PluginBase } from 'web3' import { toNumber } from 'web3-utils' export function extendWeb3 (web3) { diff --git a/libs/remix-lib/src/execution/txRunnerWeb3.ts b/libs/remix-lib/src/execution/txRunnerWeb3.ts index 621e1c475ac..8b353d6ba96 100644 --- a/libs/remix-lib/src/execution/txRunnerWeb3.ts +++ b/libs/remix-lib/src/execution/txRunnerWeb3.ts @@ -1,7 +1,7 @@ 'use strict' import { EventManager } from '../eventManager' import type { Transaction as InternalTransaction } from './txRunner' -import Web3 from 'web3' +import { Web3 } from 'web3' import { toBigInt, toHex } from 'web3-utils' export class TxRunnerWeb3 { diff --git a/libs/remix-lib/src/init.ts b/libs/remix-lib/src/init.ts index d22c2392efa..128702cd01e 100644 --- a/libs/remix-lib/src/init.ts +++ b/libs/remix-lib/src/init.ts @@ -1,5 +1,5 @@ 'use strict' -import Web3, { Web3PluginBase } from 'web3' +import { Web3, Web3PluginBase } from 'web3' import { toNumber } from 'web3-utils' export function extendWeb3 (web3) { diff --git a/libs/remix-simulator/test/accounts.ts b/libs/remix-simulator/test/accounts.ts index 17635383fce..46d1c359f64 100644 --- a/libs/remix-simulator/test/accounts.ts +++ b/libs/remix-simulator/test/accounts.ts @@ -1,5 +1,5 @@ /* global describe, before, it */ -import Web3, { FMT_BYTES, FMT_NUMBER } from 'web3' +import { Web3, FMT_BYTES, FMT_NUMBER } from 'web3' import { Provider } from '../src/index' const web3 = new Web3() import * as assert from 'assert' diff --git a/libs/remix-simulator/test/blocks.ts b/libs/remix-simulator/test/blocks.ts index 7923103edd9..e0eb39d6c9c 100644 --- a/libs/remix-simulator/test/blocks.ts +++ b/libs/remix-simulator/test/blocks.ts @@ -1,5 +1,5 @@ /* global describe, before, it */ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Provider } from '../src/index' const web3 = new Web3() import * as assert from 'assert' diff --git a/libs/remix-simulator/test/events.ts b/libs/remix-simulator/test/events.ts index 7d8fad7e9c9..cd465caaf37 100644 --- a/libs/remix-simulator/test/events.ts +++ b/libs/remix-simulator/test/events.ts @@ -1,5 +1,5 @@ /* global describe, before, it */ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Provider } from '../src/index' const web3 = new Web3() import * as assert from 'assert' diff --git a/libs/remix-simulator/test/misc.ts b/libs/remix-simulator/test/misc.ts index 673e98a35bd..dbea658c96b 100644 --- a/libs/remix-simulator/test/misc.ts +++ b/libs/remix-simulator/test/misc.ts @@ -1,5 +1,5 @@ /* global describe, before, it */ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Provider } from '../src/index' const web3 = new Web3() import * as assert from 'assert' diff --git a/libs/remix-simulator/test/transactions.ts b/libs/remix-simulator/test/transactions.ts index a908e797ac0..2fa2da4b4f4 100644 --- a/libs/remix-simulator/test/transactions.ts +++ b/libs/remix-simulator/test/transactions.ts @@ -1,5 +1,5 @@ /* global describe, before, it */ -import Web3 from 'web3' +import { Web3 } from 'web3' import { LegacyTransaction, FeeMarketEIP1559Transaction } from '@ethereumjs/tx' import { Provider } from '../src/index' const web3 = new Web3() diff --git a/libs/remix-tests/src/deployer.ts b/libs/remix-tests/src/deployer.ts index 991847a0514..0094784e0a2 100644 --- a/libs/remix-tests/src/deployer.ts +++ b/libs/remix-tests/src/deployer.ts @@ -1,6 +1,6 @@ import async from 'async' import { execution } from '@remix-project/remix-lib' -import Web3, { FMT_BYTES, FMT_NUMBER } from 'web3' +import { Web3, FMT_BYTES, FMT_NUMBER } from 'web3' import { compilationInterface } from './types' /** diff --git a/libs/remix-tests/src/run.ts b/libs/remix-tests/src/run.ts index 83fc6c1dc9c..b844bb456a4 100644 --- a/libs/remix-tests/src/run.ts +++ b/libs/remix-tests/src/run.ts @@ -1,5 +1,5 @@ import { Command } from 'commander'; -import Web3 from 'web3' +import { Web3 } from 'web3' import path from 'path' import axios, { AxiosResponse } from 'axios' import { runTestFiles } from './runTestFiles' diff --git a/libs/remix-tests/src/runTestFiles.ts b/libs/remix-tests/src/runTestFiles.ts index 3ac058857b6..9b1c2bde003 100644 --- a/libs/remix-tests/src/runTestFiles.ts +++ b/libs/remix-tests/src/runTestFiles.ts @@ -3,7 +3,7 @@ import fs from './fileSystem' import { runTest } from './testRunner' import { TestResultInterface, ResultsInterface, CompilerConfiguration, compilationInterface, ASTInterface, Options, AstNode } from './types' import colors from 'colors' -import Web3 from 'web3' +import { Web3 } from 'web3' import { format } from 'util' import { compileFileOrFiles } from './compiler' import { deployAll } from './deployer' diff --git a/libs/remix-tests/src/runTestSources.ts b/libs/remix-tests/src/runTestSources.ts index 7b97b2851c9..3464ddb037c 100644 --- a/libs/remix-tests/src/runTestSources.ts +++ b/libs/remix-tests/src/runTestSources.ts @@ -2,7 +2,7 @@ import async, { ErrorCallback } from 'async' import { compileContractSources, writeTestAccountsContract } from './compiler' import { deployAll } from './deployer' import { runTest } from './testRunner' -import Web3 from 'web3' +import { Web3 } from 'web3' import { EventEmitter } from 'events' import { Provider, extend } from '@remix-project/remix-simulator' import { diff --git a/libs/remix-tests/src/testRunner.ts b/libs/remix-tests/src/testRunner.ts index 6dcdf239b0b..b9e1c5c2d51 100644 --- a/libs/remix-tests/src/testRunner.ts +++ b/libs/remix-tests/src/testRunner.ts @@ -1,6 +1,6 @@ import async from 'async' import * as changeCase from 'change-case' -import Web3 from 'web3' +import { Web3 } from 'web3' import assertionEvents from './assertionEvents' import { RunListInterface, TestCbInterface, TestResultInterface, ResultCbInterface, diff --git a/libs/remix-tests/tests/testRunner.spec.ts b/libs/remix-tests/tests/testRunner.spec.ts index 3da24b5acd1..c5efe8452ea 100644 --- a/libs/remix-tests/tests/testRunner.spec.ts +++ b/libs/remix-tests/tests/testRunner.spec.ts @@ -1,5 +1,5 @@ import * as async from 'async' -import Web3 from 'web3'; +import { Web3 } from 'web3'; import * as assert from 'assert' import { Provider, extend } from '@remix-project/remix-simulator' diff --git a/libs/remix-ui/debugger-ui/src/lib/api/debugger-api.ts b/libs/remix-ui/debugger-ui/src/lib/api/debugger-api.ts index 0f444a74641..45db6dfbf10 100644 --- a/libs/remix-ui/debugger-ui/src/lib/api/debugger-api.ts +++ b/libs/remix-ui/debugger-ui/src/lib/api/debugger-api.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { init , traceHelper, TransactionDebugger as Debugger } from '@remix-project/remix-debug' import { CompilerAbstract } from '@remix-project/remix-solidity' import { lineText } from '@remix-ui/editor' diff --git a/libs/remix-ui/run-tab/src/lib/actions/deploy.ts b/libs/remix-ui/run-tab/src/lib/actions/deploy.ts index a1375b473d8..8103a4e832e 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/deploy.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/deploy.ts @@ -9,7 +9,7 @@ import { DeployMode, MainnetPrompt } from "../types" import { displayNotification, fetchProxyDeploymentsSuccess, setDecodedResponse, updateInstancesBalance } from "./payload" import { addInstance } from "./actions" import { addressToString, logBuilder } from "@remix-ui/helper" -import Web3 from "web3" +import { Web3 } from "web3" declare global { interface Window { diff --git a/libs/remix-ui/run-tab/src/lib/actions/events.ts b/libs/remix-ui/run-tab/src/lib/actions/events.ts index 41deac6c6f0..8d13ac5776e 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/events.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/events.ts @@ -6,7 +6,7 @@ import { addDeployOption, clearAllInstances, clearAllPinnedInstances, clearRecor import { updateInstanceBalance } from './deploy' import { CompilerAbstract } from '@remix-project/remix-solidity' import BN from 'bn.js' -import Web3 from 'web3' +import { Web3 } from 'web3' import { Plugin } from "@remixproject/engine" import { getNetworkProxyAddresses } from "./deploy" import { shortenAddress } from "@remix-ui/helper" diff --git a/libs/remix-ui/run-tab/src/lib/types/execution-context.d.ts b/libs/remix-ui/run-tab/src/lib/types/execution-context.d.ts index dd7c244c6de..83d3df2d552 100644 --- a/libs/remix-ui/run-tab/src/lib/types/execution-context.d.ts +++ b/libs/remix-ui/run-tab/src/lib/types/execution-context.d.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' export class ExecutionContext { event: any; diff --git a/libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/web3-lib.ts index cbd4f48489b..898e7c72d4e 100644 --- a/libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/ozerc1155/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/ozerc1155/scripts/web3-lib.ts index 32369998ad6..cdc9b319822 100644 --- a/libs/remix-ws-templates/src/templates/ozerc1155/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/ozerc1155/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/ozerc20/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/ozerc20/scripts/web3-lib.ts index cbd4f48489b..898e7c72d4e 100644 --- a/libs/remix-ws-templates/src/templates/ozerc20/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/ozerc20/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/ozerc721/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/ozerc721/scripts/web3-lib.ts index cbd4f48489b..898e7c72d4e 100644 --- a/libs/remix-ws-templates/src/templates/ozerc721/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/ozerc721/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/playground/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/playground/scripts/web3-lib.ts index cbd4f48489b..898e7c72d4e 100644 --- a/libs/remix-ws-templates/src/templates/playground/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/playground/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/remixDefault/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/remixDefault/scripts/web3-lib.ts index cbd4f48489b..898e7c72d4e 100644 --- a/libs/remix-ws-templates/src/templates/remixDefault/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/remixDefault/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/zeroxErc20/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/zeroxErc20/scripts/web3-lib.ts index cbd4f48489b..898e7c72d4e 100644 --- a/libs/remix-ws-templates/src/templates/zeroxErc20/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/zeroxErc20/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import Web3 from 'web3' +import { Web3 } from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** From e749dafdc330b7fd17092a6a5a48aca39b4c33c8 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 10 Sep 2024 20:08:24 +0530 Subject: [PATCH 2/2] revert change for templates --- .../src/templates/gnosisSafeMultisig/scripts/web3-lib.ts | 2 +- .../src/templates/ozerc1155/scripts/web3-lib.ts | 2 +- .../src/templates/ozerc20/scripts/web3-lib.ts | 2 +- .../src/templates/ozerc721/scripts/web3-lib.ts | 2 +- .../src/templates/playground/scripts/web3-lib.ts | 2 +- .../src/templates/remixDefault/scripts/web3-lib.ts | 2 +- .../src/templates/zeroxErc20/scripts/web3-lib.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/web3-lib.ts index 898e7c72d4e..cbd4f48489b 100644 --- a/libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import { Web3 } from 'web3' +import Web3 from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/ozerc1155/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/ozerc1155/scripts/web3-lib.ts index cdc9b319822..32369998ad6 100644 --- a/libs/remix-ws-templates/src/templates/ozerc1155/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/ozerc1155/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import { Web3 } from 'web3' +import Web3 from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/ozerc20/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/ozerc20/scripts/web3-lib.ts index 898e7c72d4e..cbd4f48489b 100644 --- a/libs/remix-ws-templates/src/templates/ozerc20/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/ozerc20/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import { Web3 } from 'web3' +import Web3 from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/ozerc721/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/ozerc721/scripts/web3-lib.ts index 898e7c72d4e..cbd4f48489b 100644 --- a/libs/remix-ws-templates/src/templates/ozerc721/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/ozerc721/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import { Web3 } from 'web3' +import Web3 from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/playground/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/playground/scripts/web3-lib.ts index 898e7c72d4e..cbd4f48489b 100644 --- a/libs/remix-ws-templates/src/templates/playground/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/playground/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import { Web3 } from 'web3' +import Web3 from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/remixDefault/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/remixDefault/scripts/web3-lib.ts index 898e7c72d4e..cbd4f48489b 100644 --- a/libs/remix-ws-templates/src/templates/remixDefault/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/remixDefault/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import { Web3 } from 'web3' +import Web3 from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /** diff --git a/libs/remix-ws-templates/src/templates/zeroxErc20/scripts/web3-lib.ts b/libs/remix-ws-templates/src/templates/zeroxErc20/scripts/web3-lib.ts index 898e7c72d4e..cbd4f48489b 100644 --- a/libs/remix-ws-templates/src/templates/zeroxErc20/scripts/web3-lib.ts +++ b/libs/remix-ws-templates/src/templates/zeroxErc20/scripts/web3-lib.ts @@ -1,4 +1,4 @@ -import { Web3 } from 'web3' +import Web3 from 'web3' import { Contract, ContractSendMethod, Options } from 'web3-eth-contract' /**