Skip to content

Commit

Permalink
use PollTryAtEpoch error on gat order
Browse files Browse the repository at this point in the history
  • Loading branch information
yvesfracari committed Jul 24, 2024
1 parent 400c29f commit 232a2ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types/GoodAfterTime.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ contract GoodAfterTime is BaseConditionalOrder {

// Don't allow the order to be placed before it becomes valid.
if (!(block.timestamp >= data.startTime)) {
revert IConditionalOrder.PollTryNextBlock(TOO_EARLY);
revert IConditionalOrder.PollTryAtEpoch(data.startTime, TOO_EARLY);
}

// Require that the sell token balance is above the minimum.
Expand Down
2 changes: 1 addition & 1 deletion test/ComposableCoW.gat.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ contract ComposableCoWGatTest is BaseComposableCoWTest {
vm.warp(currentTime);

// should revert when the current time is before the start time
vm.expectRevert(abi.encodeWithSelector(IConditionalOrder.PollTryNextBlock.selector, TOO_EARLY));
vm.expectRevert(abi.encodeWithSelector(IConditionalOrder.PollTryAtEpoch.selector, startTime, TOO_EARLY));
gat.getTradeableOrder(address(safe1), address(0), bytes32(0), abi.encode(o), abi.encode(uint256(1e18)));
}

Expand Down

0 comments on commit 232a2ef

Please sign in to comment.