fix failing test

pull/7/head
yann300 8 years ago
parent fb84fed8ef
commit 31ad4d06bf
  1. 4
      test/solidity/localsTests/helper.js

@ -5,6 +5,7 @@ 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) {
try {
traceManager.waterfall([ traceManager.waterfall([
traceManager.getStackAt, traceManager.getStackAt,
traceManager.getMemoryAt], traceManager.getMemoryAt],
@ -17,6 +18,9 @@ function decodeLocal (st, index, traceManager, callTree, verifier) {
st.fail(error) st.fail(error)
} }
}) })
} catch (e) {
st.fail(e.message)
}
} }
module.exports = { module.exports = {

Loading…
Cancel
Save