File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ abstract contract StorageAccessible {
3131
3232 /**
3333 * @dev Performs a delegatecall on a targetContract in the context of self.
34- * Internally reverts execution to avoid side effects (making it static).
34+ * Internally reverts execution to avoid side effects (making it effectively static).
3535 *
36- * This method reverts with data equal to `abi.encode(bool (success), bytes(response))`.
36+ * This method reverts with data equal to `abi.encodePacked(uint256 (success), uint256(response.length ), bytes(response))`.
3737 * Specifically, the `returndata` after a call to this method will be:
38- * `success:bool || response.length:uint256 || response:bytes`.
38+ * `success:uint256 || response.length:uint256 || response:bytes`.
3939 *
4040 * @param targetContract Address of the contract containing the code to execute.
4141 * @param calldataPayload Calldata that should be sent to the target contract (encoded method name and arguments).
You can’t perform that action at this time.
0 commit comments