Skip to content

Commit

Permalink
test: fix revert upd rate limit to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaSethi committed Oct 11, 2024
1 parent db0364f commit 96e96f2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/test/TestGhoCcipSteward.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,20 @@ contract TestGhoCcipSteward is TestGhoBase {
rate: 0
});
vm.prank(RISK_COUNCIL);
vm.expectRevert('INVALID_RATE_LIMIT_UPDATE');
vm.expectRevert(
abi.encodeWithSelector(
RateLimiter.InvalidRatelimitRate.selector,
RateLimiter.Config({isEnabled: true, capacity: 0, rate: 0})
)
);
GHO_CCIP_STEWARD.updateRateLimit(
remoteChainSelector,
invalidConfig.isEnabled,
invalidConfig.capacity,
invalidConfig.rate,
rateLimitConfig.isEnabled,
rateLimitConfig.capacity,
rateLimitConfig.rate
invalidConfig.isEnabled,
invalidConfig.capacity,
invalidConfig.rate
);
}

Expand Down

0 comments on commit 96e96f2

Please sign in to comment.