curve-dao-contracts icon indicating copy to clipboard operation
curve-dao-contracts copied to clipboard

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

Open fritzschoff opened this issue 2 years ago • 1 comments

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?

fritzschoff avatar Mar 22 '22 17:03 fritzschoff

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

antsbean avatar Mar 29 '23 12:03 antsbean