diff --git a/libs/remix-debug/test/decoder/stateTests/mapping.ts b/libs/remix-debug/test/decoder/stateTests/mapping.ts index 3ca31823a5..5a2af96690 100644 --- a/libs/remix-debug/test/decoder/stateTests/mapping.ts +++ b/libs/remix-debug/test/decoder/stateTests/mapping.ts @@ -29,11 +29,12 @@ module.exports = async function testMappingStorage (st, cb) { st.end(error) } else { web3.eth.getTransactionReceipt(hash) - .then(tx => + .then(tx => { // const storage = await this.vm.stateManager.dumpStorage(data.to) - // (vmCall as any).web3().eth.getCode(tx.contractAddress).then((code) => console.log('code:', code)) + // web3.eth.getCode(tx.contractAddress).then((code) => console.log('code:---', code)) // (vmCall as any).web3().debug.traceTransaction(hash).then((code) => console.log('trace:', code)) testMapping(st, privateKey, tx.contractAddress, output, compilationResults, web3, cb) + } // st.end() ) .catch(error => { @@ -71,7 +72,7 @@ function testMapping (st, privateKey, contractAddress, output, compilationResult }) callTree.event.register('callTreeReady', (scopes, scopeStarts) => { const storageViewer = new StorageViewer({ - stepIndex: 268, + stepIndex: 472, tx: tx, address: contractAddress }, new StorageResolver({ web3 }), traceManager) diff --git a/libs/remix-debug/test/vmCall.ts b/libs/remix-debug/test/vmCall.ts index 0866b065e6..12187e20b0 100644 --- a/libs/remix-debug/test/vmCall.ts +++ b/libs/remix-debug/test/vmCall.ts @@ -5,7 +5,7 @@ import { Web3 } from 'web3'; const { Provider } = require('@remix-project/remix-simulator') async function getWeb3 () { - const remixSimulatorProvider = new Provider({ fork: 'berlin' }) + const remixSimulatorProvider = new Provider({ fork: 'cancun' }) await remixSimulatorProvider.init() await remixSimulatorProvider.Accounts.resetAccounts() const web3 = new Web3(remixSimulatorProvider)