Consensys/abi-decoder

abi-decode can't decode arguments to a constructor

pieterhartel opened this issue · 1 comments

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

I now see that this is the same as issue #7. Would it be possible to give this some priority?

--pieter