Skip to content

Commit d89d156

Browse files
PaulRBergmmv08
authored andcommitted
docs: fix natspec in simulateAndRevert
1 parent 27d3057 commit d89d156

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

contracts/common/StorageAccessible.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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).

0 commit comments

Comments
 (0)