Closed Pafaul closed 5 months ago
In log it says that values have type 5, 4, 4, 4, 4, 4
which maps to BOOL, UINT, UINT, UINT, UINT, UINT
, which is different from provided types for decoding
ok, looks like the problem was with having extra spaces between the provided types (idk how, but it works), so the correct one will be:
const decodedTuple = ethereum
.decode('(bool,bool,uint256,uint256,uint256,bool)', args)!
.toTuple();
after this fix all the values decode with correct types
Bug report
I've been trying to decode some raw encoded data (encoded with abi.encode) to use it later, but encountered an error. What i've been doing:
After it the decoded data will be used this way:
With some log output for debugging:
Data to decode:
0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
The decoding was able to successfully decode encoded values when it was just two addresses or two uint256 values (encoded with abi.encode):
Setup:
Relevant log output
IPFS hash
No response
Subgraph name or link to explorer
No response
Some information to help us out
OS information
Other (please specify in your bug report)