Closed ShubhamChndrvnshi closed 2 days ago
As an aside, there are some things with your script I want to comment on!
@network_option()
with ConnectedProviderCommand
, you get it automatically and it works better without itConnectedProviderCommand
, you can also accept provider
and ecosystem
right in the command args,Here is an example!
@click.command(cls=ConnectedProviderCommand)
@ape_cli_context()
def cli(cli_ctx, ecosystem, network, provider):
...
# No need for lines like `network_name = networks.provider.network.name`
click.secho(f"Selected network: {network.name}", fg="blue")
(Partially shilling this feature)
And also, for the record, I am looking into the issue now and working on ape-etherscan as a whole
Worked for me https://sepolia.etherscan.io/address/0xd9aaBA4a0Cf1F087cEc266e2811e8ae5cAb1Faf3#code
Thanks @antazoey
Environment information
ape
and plugin versions:Python Version: 3.9.5
OS: linux (docker)
What went wrong?
Tried verifying the contract with
publish: True
, I got error that it's unable to locate a contract.@click.command(cls=ConnectedProviderCommand) @ape_cli_context() @network_option() def cli(cli_ctx, network): """ Get public parameter of cicada vote instance """ try:
custom gas fee
Unable to verify. Unable to locate a contract with the name 'PrivateVote.sol:PrivateVote', did you specify the correct Contract Name?