Consensys / Consensys/abi-decoder

abi-decode can't decode arguments to a constructor

Open
#28 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.