fix simulator test

pull/4203/head
aniket-engg 1 year ago committed by Aniket
parent d3d6f8926d
commit 2f6f7be485
  1. 4
      libs/remix-simulator/src/vm-context.ts
  2. 1
      package.json

@ -71,10 +71,10 @@ class StateManagerCommonStorageDump extends DefaultStateManager {
const stream = trie.createReadStream() const stream = trie.createReadStream()
stream.on('data', (val) => { stream.on('data', (val) => {
const value = decode(val.value) const value: any = decode(val.value)
storage['0x' + val.key.toString('hex')] = { storage['0x' + val.key.toString('hex')] = {
key: this.keyHashes[val.key.toString('hex')], key: this.keyHashes[val.key.toString('hex')],
value: '0x' + value.toString() value: '0x' + value.toString('hex')
} }
}) })
stream.on('end', () => { stream.on('end', () => {

@ -155,6 +155,7 @@
"commander": "^9.4.1", "commander": "^9.4.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"cors": "^2.8.5", "cors": "^2.8.5",
"create-hash": "^1.2.0",
"deep-equal": "^1.0.1", "deep-equal": "^1.0.1",
"document-register-element": "1.13.1", "document-register-element": "1.13.1",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.5.0",

Loading…
Cancel
Save