menu

Aragon

Aragon is the most powerful and modular way to run DAOs

Channels
# All channels
view-forward
# Announcements
view-forward
# App development
view-forward
# Aragon Agent
view-forward
# Aragon Client
view-forward
# Aragon Connect
view-forward
# aragonOS
view-forward
# aragonUI
view-forward
# Feature requests
view-forward
Team

contract-test-helpers and bytes fields in logs

May 27, 2020 at 4:04pm

contract-test-helpers and bytes fields in logs

May 27, 2020 at 4:04pm (Edited 1 month ago)
Has anybody used the helper decodeEvents here with bytes fields? It’s not working for me. I get weird errors like this one:
Error: data out-of-bounds (length=36, offset=64, code=BUFFER_OVERRUN, version=abi/5.0.0-beta.153)
at Logger.makeError (node_modules/@ethersproject/logger/lib/index.js:178:21)
at Logger.throwError (node_modules/@ethersproject/logger/lib/index.js:187:20)
at Reader._peekBytes (node_modules/@ethersproject/abi/lib/coders/abstract-coder.js:135:20)
at Reader.readBytes (node_modules/@ethersproject/abi/lib/coders/abstract-coder.js:146:26)
at BytesCoder.DynamicBytesCoder.decode (node_modules/@ethersproject/abi/lib/coders/bytes.js:30:23)
at BytesCoder.decode (node_modules/@ethersproject/abi/lib/coders/bytes.js:41:81)
at node_modules/@ethersproject/abi/lib/coders/array.js:77:31
at Array.forEach (<anonymous>)
at Object.unpack (node_modules/@ethersproject/abi/lib/coders/array.js:71:12)
at TupleCoder.decode (node_modules/@ethersproject/abi/lib/coders/tuple.js:39:49)
at AbiCoder.decode (node_modules/@ethersproject/abi/lib/abi-coder.js:93:22)
at ABICoder.decodeParameters (node_modules/web3-eth-abi/src/index.js:322:30)
at ABICoder.decodeLog (node_modules/web3-eth-abi/src/index.js:376:52)
at eventLogs.map.log (node_modules/@aragon/contract-helpers-test/events.js:18:20)
at Array.map (<anonymous>)
at decodeEvents (node_modules/@aragon/contract-helpers-test/events.js:16:20)
at getDeepEventLogs (test/lock_and_call.js:9:10)
at getDeepEventArgument (test/lock_and_call.js:12:16)
at checkCallbackLog (test/lock_and_call.js:50:18)
at Context.it (test/lock_and_call.js:59:7)
at process._tickCallback (internal/process/next_tick.js:68:7)
Has anybody experienced this before?

May 27, 2020 at 4:29pm
hmm interesting! Reminds me that we just upgraded to 1.2.8 on the CLI this week, I'll probably have another check to see if anything is broken hehe. Thanks for the info Bingen!
like-fill
1
  • reply
  • like