Conversation
|
@rainbreak what do you think about this change? apparently if you delegatecall to an address that doesn't have code it doesn't revert, just passes. I'm not sure if that is ok or not, but as we are checking if the |
|
With constantinople you can also consider |
Yeah, I was planning to take care of it in another PR. |
|
ahh @rainbreak you were meaning for this specific check, I thought you were talking about the possibility of simplifying the cache with the new opcode. Anyway I think using |
|
@rainbreak can we merge this? |
| returns (bytes memory response) | ||
| { | ||
| require(_target != address(0), "ds-proxy-target-address-required"); | ||
| uint csize; |
There was a problem hiding this comment.
Can't use codesize as variable name in assembly.
There was a problem hiding this comment.
codeSize or code_size work though. What do you prefer?
Are you still considering extcodehash? |
In the beginning I thought you were suggesting |
|
As per this other discussion in the OpenZeppelin repo, the gas cost for |
No description provided.