Fix constructor in PRBProxy.sol
contract
#192
-
looking a bit more at the contract, I see an unchecked return value in the constructor inside constructor() {
registry = IPRBProxyRegistry(msg.sender);
(address owner_, address target, bytes memory data) = registry.constructorParams();
owner = owner_;
if (target != address(0)) {
_execute(target, data);
}
} having in mind that |
Beta Was this translation helpful? Give feedback.
Answered by
PaulRBerg
Feb 12, 2024
Replies: 1 comment 1 reply
-
The design is intentional. The point is to let
What is your suggestion, more specifically? A code snippet would be helpful |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
PaulRBerg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The design is intentional. The point is to let
_execute
handle the revert.What is your suggestion, more specifically? A code snippet would be helpful