dapphub / dapphub/dapptools

seth 4byte-decode "Error: unexpected character "(" at position 0 in "(address,address,uint24,address,uint256,uint256,uint256,uint160)"

Open
#801 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2.1k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

Trying to decode the below data results in an error. Seems like it's because of the double parenthesis wrapping the arguments.

I believe they signify the input is encoded as a struct? Looks like that might not be supported in `abi-decode`?

```
❯ seth 4byte-decode 0x414bf38900000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000fc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a0000000000000000000000000000000000000000000000000000000000002710000000000000000000000000b47bec5577f8a02c78ca98f3db20e538e690f94c00000000000000000000000000000000000000000000000000000000614640eb0000000000000000000000000000000000000000000000000164e1e25de63b9500000000000000000000000000000000000000000000000130887aaad44e8a110000000000000000000000000000000000000000000000000000000000000000
1) "exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160))"
Select a function signature by number: 1

Error: unexpected character "(" at position 0 in "(address,address,uint24,address,uint256,uint256,uint256,uint160)"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.