ethereum.decode does not recognise bool datatype #1417
Replies: 3 comments
-
hey @0xxlegolas not sure what your exact use case is so may not help, but there are some examples on encoding and decoding booleans here: https://github.com/graphprotocol/graph-node/blob/6a7806cc465949ebb9e5b8269eeb763857797efc/tests/integration-tests/host-exports/src/mapping.ts#L72 |
Beta Was this translation helpful? Give feedback.
-
@azf20 Yes I have seen these examples. And I found out the issue. Apparently the bool value is Below does not works
Below works
|
Beta Was this translation helpful? Give feedback.
-
OK great - closing as I think you have resolved, but reopen if you think a change in functionality is required here |
Beta Was this translation helpful? Give feedback.
-
Having this weird issue. Whenever there is bool type in the args ethereum.decode throws error : with message:
unexpected null
here is the code :Expected values are : (true, 0, 10)
You can try this with the below combination as well.
Any workaround for this ?
Beta Was this translation helpful? Give feedback.
All reactions