Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import inherited ABIs #53

Open
pau1m opened this issue Jan 17, 2019 · 0 comments
Open

Can't import inherited ABIs #53

pau1m opened this issue Jan 17, 2019 · 0 comments

Comments

@pau1m
Copy link
Contributor

pau1m commented Jan 17, 2019

When using "Import from truffle option", ABIs for contract dependencies are not included. So for example in Solidity, if we have

contract someContract is ERC20

Only the functions in someContract are available in the ABI, ERC20 functions won't exist on the contract object.

I tried to work around this by importing an ERC20 contract separately, but since it is a dependency, the build file does not contain deployment information (eg address on Rinkeby) and thus the import form can't be saved.

Allowing editing of contract addresses in the import form, would be a fast fix to work around. Ideally, smart contract dependencies should have their ABI included with the parent.

I found that instantiating a contract directly with php-ethereum (instead of through GUI) includes all of the expect ABI items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant