Skip to content

Commit f7c3d36

Browse files
committed
remove web3 from remix-solidity and few from remix-debug
1 parent 53f19bc commit f7c3d36

File tree

4 files changed

+2
-19
lines changed

4 files changed

+2
-19
lines changed

libs/remix-debug/src/Ethdebugger.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { CodeManager } from './code/codeManager'
77
import { contractCreationToken } from './trace/traceHelper'
88
import { EventManager } from './eventManager'
99
import { SolidityProxy, stateDecoder, localDecoder, InternalCallTree } from './solidity-decoder'
10-
import { extractStateVariables } from './solidity-decoder/stateDecoder'
1110

1211
/**
1312
* Ethdebugger is a wrapper around a few classes that helps debug a transaction

libs/remix-debug/src/cmdline/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Web3 } from 'web3'
1+
import { ethers } from 'ethers'
22
import { Debugger } from '../debugger/debugger'
33
import { EventEmitter } from 'events'
44

@@ -22,7 +22,7 @@ export class CmdLine {
2222

2323
connect (providerType, url) {
2424
if (providerType !== 'http') throw new Error('unsupported provider type')
25-
this.web3 = new Web3(new Web3.providers.HttpProvider(url))
25+
this.web3 = new ethers.JsonRpcProvider(url)
2626
}
2727

2828
loadCompilationData (inputJson, outputJson) {

libs/remix-debug/test.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,6 @@ const cmdLine = new CmdLine()
4545
cmdLine.connect('http', 'http://localhost:8545')
4646
cmdLine.loadCompilationResult(compilation)
4747
cmdLine.initDebugger()
48-
49-
// var deployContract = function (cb) {
50-
// let _web3 = cmdLine.debugger.debugger.web3
51-
//
52-
// let blockNumber = null
53-
// let txNumber = null
54-
// let tx = null
55-
//
56-
// let code = compilation.data.contracts[shortFilename].SimpleStorage.evm.bytecode.object
57-
// console.dir('deploying...')
58-
// console.dir(code)
59-
// _web3.eth.sendTransaction({data: '0x' + code, from: _web3.eth.accounts[0], gas: 800000}, cb)
60-
// }
61-
62-
// let _web3 = cmdLine.debugger.debugger.web3
6348
const tx = '0xf510c4f0b1d9ee262d7b9e9e87b4262f275fe029c2c733feef7dfa1e2b1e32aa'
6449

6550
// deployContract((err, tx) => {

libs/remix-solidity/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"semver": "^6.3.0",
2929
"solc": "0.8.26",
3030
"string-similarity": "^4.0.4",
31-
"web3": "^4.1.1",
3231
"webworkify-webpack": "^2.1.5"
3332
},
3433
"devDependencies": {

0 commit comments

Comments
 (0)