ApeWorX / ape-safe

Safe (Wallet) account plugin for the Ape Framework
https://www.apeworx.io/
Apache License 2.0
14 stars 8 forks source link

delegate call check broken on optimism #28

Closed solarthesis closed 9 months ago

solarthesis commented 9 months ago

Environment information

$ ape plugins list

  alchemy      0.7.1
  etherscan    0.7.0
  foundry      0.7.1
  optimism     0.7.1
  safe         0.7.0b0
  solidity     0.7.1

What went wrong?

Please include information like:

The error props up in provider.py under the estimate_gas_cost where estimation fails, most likely it's related to txn_params being improperly configured for that gas estimation.

ContractLogicError: execution reverted: MultiSend should only be called via delegatecall


### How can it be fixed?

I changed switched the `to` in the tx_params variable, to the address of the contract being interacted with in the individual send, rather then the multisend and it seems to have not reverted in the multicall.

tx_params is as follows:

{'chainId': 10, 'to': '0x998739BFdAAdde7C933B942a68053933098f9EDa', 'from': 'MY_SAFE_ADDRESS', 'value': 0, 'data': '0x8d80ff0a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000079014200000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000242e1a7d4d000000000000000000000000000000000000000000000000000000000000006400000000000000', 'type': '0x02', 'maxFeePerGas': 5373609, 'maxPriorityFeePerGas': 1000000, 'accessList': []}



Fill this in if you have ideas on how the bug could be fixed.
linear[bot] commented 9 months ago

APE-1654 delegate call check broken on optimism

solarthesis commented 9 months ago

closing this ticket, as it has been addressed in the latest optimism release