-
Notifications
You must be signed in to change notification settings - Fork 78
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
Calling execute with an invalid address doesn't revert? #24
Comments
the require happens before the |
I noticed this when working in the mcd branch of Dai.js on the ganache testchain. I created a snapshot with a deployment of MomLib and configured Dai.js to use it to change the debt ceiling. That worked fine. But when I changed the snapshot back to one that didn't have MomLib deployed, and ran the same code, the MomLib call still completed without an error. If I change the config so MomLib's address is the address of some other contract in the snapshot, like the ETH price feed, then it does revert. But if the address is not 0, but it's an address with no contract attached, then it doesn't revert. |
ok, thanks, will try this out. |
What defines an invalid target? Not having code? But you still have to be able to transfer to a key... Unfortunately I think this has to remain as the ugly behavior and technically even removing the 0x0 special case might be the correct thing. I should catch up on EVM updates before making too many comments |
@nmushegian if you want to transfer ETH to a key from your proxy, you would need to
If you basically |
i.e. if i call it with
address(0)
it reverts with "ds-proxy-target-address-required" as expected, but if i call it with0x0000000000000000000000000000000000000001
no revert occurs. Is this expecteddelegatecall
behavior?The text was updated successfully, but these errors were encountered: