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

AttributeError: Contract 'AppProxyUpgradeable' object has no attribute 'execute' #139

Open
fritzschoff opened this issue Mar 22, 2022 · 1 comment

Comments

@fritzschoff
Copy link

when I'm running brownie run voting/new_vote make_vote --network mainnet -I this will get thrown inside the make_vote function. Are the ABIs not the correct ones or what could cause this issue?

@antsbean
Copy link

i also have encountered this probelm, you can modify prepare_evm_script function to resolve it

change code

def prepare_evm_script():
       agent = Contract(TARGET["agent"])

to

def prepare_evm_script():
      agent = Contract.from_explorer(TARGET["agent"])

why ?
because the agent contract is proxy contract
pls see https://eth-brownie.readthedocs.io/en/stable/api-network.html#Contract.from_explorer to view details

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

2 participants