Skip to content

Commit

Permalink
(style): forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkaseman committed Apr 9, 2024
1 parent 084f570 commit fddcb1b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/src/v0.8/ccip/AggregateRateLimiter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ contract AggregateRateLimiter is OwnerIsCreator {
/// @notice Internal helper to set the Aggregate Rate Limiter config for a token.
function _setTokenAggregateRateLimitConfig(address token, bool enabled) internal {
bool current = s_tokenAggregateRateLimitConfig[token];
if (enabled && current == false) {
if (enabled && current == false) {
s_tokenAggregateRateLimitConfig[token] = true;
emit TokenAggregateRateLimitConfigSet(token, true);
}
Expand Down
1 change: 0 additions & 1 deletion contracts/src/v0.8/ccip/test/onRamp/EVM2EVMOnRamp.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,6 @@ contract EVM2EVMOnRamp_setTokenTransferFeeConfig is EVM2EVMOnRampSetup {
destGasOverhead: 0,
destBytesOverhead: 0,
aggregateRateLimitEnabled: true

});
tokenTransferFeeConfigArgs[1] = EVM2EVMOnRamp.TokenTransferFeeConfigArgs({
token: address(1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,16 @@ contract AggregateTokenLimiter_setRateLimiterConfig is AggregateTokenLimiterSetu
}
}


/// @notice #getTokenAggregateRateLimitConfig
contract AggregateTokenLimiter_getTokenAggregateRateLimitConfig is AggregateTokenLimiterSetup {
function testGetTokenAggregateRateLimitConfigSuccess() public {
assertEq(s_rateLimiter.getTokenAggregateRateLimitConfig(TOKEN), true);
}
}


/// @notice #setTokenAggregateRateLimitConfig
contract AggregateTokenLimiter_setTokenAggregateRateLimitConfig is AggregateTokenLimiterSetup {
event TokenAggregateRateLimitConfigSet(address token, bool enabled);
event TokenAggregateRateLimitConfigSet(address token, bool enabled);

function setTokenAggregateRateLimitConfig() private {
vm.expectEmit();
Expand Down

0 comments on commit fddcb1b

Please sign in to comment.