|
|
@ -5,18 +5,22 @@ var localDecoder = require('../../../babelify-src/solidity/localDecoder') |
|
|
|
Decode local variable |
|
|
|
Decode local variable |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function decodeLocal (st, index, traceManager, callTree, verifier) { |
|
|
|
function decodeLocal (st, index, traceManager, callTree, verifier) { |
|
|
|
traceManager.waterfall([ |
|
|
|
try { |
|
|
|
traceManager.getStackAt, |
|
|
|
traceManager.waterfall([ |
|
|
|
traceManager.getMemoryAt], |
|
|
|
traceManager.getStackAt, |
|
|
|
index, |
|
|
|
traceManager.getMemoryAt], |
|
|
|
function (error, result) { |
|
|
|
index, |
|
|
|
if (!error) { |
|
|
|
function (error, result) { |
|
|
|
var locals = localDecoder.solidityLocals(index, callTree, result[0].value, result[1].value) |
|
|
|
if (!error) { |
|
|
|
verifier(locals) |
|
|
|
var locals = localDecoder.solidityLocals(index, callTree, result[0].value, result[1].value) |
|
|
|
} else { |
|
|
|
verifier(locals) |
|
|
|
st.fail(error) |
|
|
|
} else { |
|
|
|
} |
|
|
|
st.fail(error) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
st.fail(e.message) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
module.exports = { |
|
|
|