Skip to content

Commit

Permalink
fix: CCIP-2465 MultiAggregatorRateLimiter tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
defistar committed Aug 12, 2024
1 parent af50bdc commit 93efe04
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 436 deletions.
4 changes: 1 addition & 3 deletions contracts/src/v0.8/ccip/MultiAggregateRateLimiter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,7 @@ contract MultiAggregateRateLimiter is IMessageInterceptor, AuthorizedCallers, IT
bytes memory remoteToken = adds[i].remoteToken;
address localToken = localTokenArgs.localToken;

if (
localToken == address(0) || keccak256(abi.encodePacked(remoteToken)) == keccak256(abi.encodePacked(address(0)))
) {
if (localToken == address(0) || remoteToken.length == 0) {
revert ZeroAddressNotAllowed();
}

Expand Down
Loading

0 comments on commit 93efe04

Please sign in to comment.