Consensys / Consensys/abi-decoder
abi-decode can't decode arguments to a constructor
- Dominant language
- JavaScript
- Stars
- 641
- Forks
- 215
- PR merge metrics
- No merged PRs in 30d
Description
The constructor does not have a name and is therefore not considered by addABI; similarly the input to a create transaction is not prefixed by a hash of the signature of the constructor. So you can't easily decode the arguments to the create transaction.
There is a work around, which is a bit clumsy. First modify the ABI by giving the constructor a name, then prefix the hash of the appropriate signature to the input data, and finally decode will work. I hope that the authors of the decode-abi can come up with a fix that avoids the clumsy work around.
--pieter
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.