simplify some hashes

pull/451/head
Iuri Matias 4 years ago
parent ad32d59a5f
commit f5352f82c6
  1. 7
      libs/remix-debug/src/solidity-decoder/index.js
  2. 4
      libs/remix-debug/src/solidity-decoder/localDecoder.js
  3. 6
      libs/remix-debug/src/solidity-decoder/stateDecoder.js
  4. 5
      libs/remix-debug/src/storage/mappingPreimages.js
  5. 5
      libs/remix-lib/src/eventManager.js

@ -3,9 +3,4 @@ const stateDecoder = require('./stateDecoder')
const localDecoder = require('./localDecoder')
const InternalCallTree = require('./internalCallTree')
module.exports = {
SolidityProxy: SolidityProxy,
stateDecoder: stateDecoder,
localDecoder: localDecoder,
InternalCallTree: InternalCallTree
}
module.exports = {SolidityProxy, stateDecoder, localDecoder, InternalCallTree}

@ -35,6 +35,4 @@ function formatMemory (memory) {
return memory
}
module.exports = {
solidityLocals: solidityLocals
}
module.exports = {solidityLocals}

@ -64,8 +64,4 @@ async function solidityState (storageResolver, astList, contractName) {
}
}
module.exports = {
solidityState: solidityState,
extractStateVariables: extractStateVariables,
decodeState: decodeState
}
module.exports = {solidityState, extractStateVariables, decodeState}

@ -51,10 +51,9 @@ function getPreimage (web3, key) {
return new Promise((resolve, reject) => {
web3.debug.preimage(key.indexOf('0x') === 0 ? key : '0x' + key, (error, preimage) => {
if (error) {
resolve(null)
} else {
resolve(preimage)
return resolve(null)
}
resolve(preimage)
})
})
}

@ -44,10 +44,7 @@ eventManager.prototype.register = function (eventName, obj, func) {
func = obj
obj = this.anonymous
}
this.registered[eventName].push({
obj: obj,
func: func
})
this.registered[eventName].push({obj, func})
}
/*

Loading…
Cancel
Save