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 |
0 replies
|
@azf20 Yes I have seen these examples. And I found out the issue. Apparently the bool value is Below does not works Below works |
0 replies
|
OK great - closing as I think you have resolved, but reopen if you think a change in functionality is required here |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Having this weird issue. Whenever there is bool type in the args ethereum.decode throws error : with message:
unexpected nullhere is the code :Expected values are : (true, 0, 10)
You can try this with the below combination as well.
Any workaround for this ?
All reactions