mapping fix

pull/5101/head
aniket-engg 3 months ago committed by Aniket
parent 61729bdb41
commit 3ac9bb5a18
  1. 7
      libs/remix-debug/test/decoder/stateTests/mapping.ts
  2. 2
      libs/remix-debug/test/vmCall.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)

@ -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)

Loading…
Cancel
Save