Commit f5352f82 authored by Iuri Matias's avatar Iuri Matias

simplify some hashes

parent ad32d59a
......@@ -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})
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment