-
Here is a code which decoder logs retrieved with
The error is:
Here is the data feed for the code above:
|
Beta Was this translation helpful? Give feedback.
Answered by
zemse
Jul 5, 2021
Replies: 1 comment 2 replies
-
(I'm not very familiar with using AbiCoder directly) It seems you want to decode getLogs, Interface sohuld help you: const iface = new ethers.utils.Interface(abi);
const parsed = iface.parseLog(log) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
emclab
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
variable.map is not a function
, sounds like somewhere array was expected but it got a non-array value. The decode docs seem to be asking to pass intypes
while seems you're pasing a stirnginput.type
. Can you try passing in an array or make it[input.type]
(I'm not very familiar with using AbiCoder directly) It seems you want to decode getLogs, Interface sohuld help you: