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

EthClient.Contract.get_functions/1 only works with etherscan connected chains #22

Closed
SantiagoPittella opened this issue May 11, 2022 · 1 comment · May be fixed by #50
Closed

EthClient.Contract.get_functions/1 only works with etherscan connected chains #22

SantiagoPittella opened this issue May 11, 2022 · 1 comment · May be fixed by #50
Assignees

Comments

@SantiagoPittella
Copy link
Contributor

If you try to call EthClient.Contract.get_functions/1 with a contract address as parameter, the function will automatically try to search the functions from etherscan and will generate an error if the contract was deployed in the local node.
Error:

** (MatchError) no match of right hand side value: {:error, :unknown_chain_id_for_etherscan}
    (eth_client 0.1.0) lib/eth_client/abi.ex:12: EthClient.ABI.get_etherscan/1
    (eth_client 0.1.0) lib/eth_client/contract.ex:10: EthClient.Contract.get_functions/1

The functions works locally only if the parameter is the path to the ABI file.

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

Successfully merging a pull request may close this issue.

2 participants