Skip to content

Commit

Permalink
put back the orig PayloadsControllerCore.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
nisnislevi committed Dec 3, 2024
1 parent ac359a6 commit 1394ac5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/contracts/payloads/PayloadsControllerCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,15 @@ abstract contract PayloadsControllerCore is
}

receive() external payable {}
uint256 ___pos;

/**
* @notice method to cancel a payload
* @param payloadId id of the payload that needs to be canceled
*/
function _cancelPayload(uint40 payloadId) internal {
Payload storage payload = _payloads[payloadId];
___pos = 0;

PayloadState payloadState = _getPayloadState(payload);
___pos = 1;
require(
payloadState < PayloadState.Executed &&
payloadState >= PayloadState.Created,
Expand Down

0 comments on commit 1394ac5

Please sign in to comment.