Skip to content

Commit

Permalink
fix: CCIP-2465 upgrade the chainlink-ccip reference to the branch com…
Browse files Browse the repository at this point in the history
…mit with feature
  • Loading branch information
defistar committed Aug 14, 2024
1 parent 1ddb158 commit 8d916f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,14 +520,14 @@ contract MultiAggregateRateLimiter_updateRateLimitTokens is MultiAggregateRateLi
remoteChainSelector: CHAIN_SELECTOR_1,
localToken: s_destTokens[0]
}),
remoteToken: abi.encodePacked(s_sourceTokens[0])
remoteToken: abi.encode(s_sourceTokens[0])
});
adds[1] = MultiAggregateRateLimiter.RateLimitTokenArgs({
localTokenArgs: MultiAggregateRateLimiter.LocalRateLimitToken({
remoteChainSelector: CHAIN_SELECTOR_2,
localToken: s_destTokens[1]
}),
remoteToken: abi.encodePacked(s_sourceTokens[1])
remoteToken: abi.encode(s_sourceTokens[1])
});

for (uint256 i = 0; i < adds.length; ++i) {
Expand Down Expand Up @@ -769,7 +769,7 @@ contract MultiAggregateRateLimiter_onInboundMessage is MultiAggregateRateLimiter
localToken: s_destTokens[i]
}),
// Create a remote token address that is different from CHAIN_SELECTOR_1
remoteToken: abi.encodePacked(uint256(uint160(s_sourceTokens[i])) + type(uint160).max + 1)
remoteToken: abi.encode(uint256(uint160(s_sourceTokens[i])) + type(uint160).max + 1)
});
}
s_rateLimiter.updateRateLimitTokens(new MultiAggregateRateLimiter.LocalRateLimitToken[](0), tokensToAdd);
Expand Down Expand Up @@ -818,7 +818,7 @@ contract MultiAggregateRateLimiter_onInboundMessage is MultiAggregateRateLimiter
localToken: s_destTokens[0]
}),
// Create a remote token address that is different from CHAIN_SELECTOR_1
remoteToken: abi.encodePacked(uint256(uint160(s_sourceTokens[0])) + type(uint160).max + 1)
remoteToken: abi.encode(uint256(uint160(s_sourceTokens[0])) + type(uint160).max + 1)
});
s_rateLimiter.updateRateLimitTokens(new MultiAggregateRateLimiter.LocalRateLimitToken[](0), tokensToAdd);

Expand Down Expand Up @@ -915,7 +915,7 @@ contract MultiAggregateRateLimiter_onOutboundMessage is MultiAggregateRateLimite
remoteChainSelector: CHAIN_SELECTOR_1,
localToken: s_sourceTokens[i]
}),
remoteToken: abi.encodePacked(bytes20(s_destTokenBySourceToken[s_sourceTokens[i]]))
remoteToken: abi.encode(bytes20(s_destTokenBySourceToken[s_sourceTokens[i]]))
});

Internal.PriceUpdates memory priceUpdates =
Expand Down Expand Up @@ -1003,7 +1003,7 @@ contract MultiAggregateRateLimiter_onOutboundMessage is MultiAggregateRateLimite
localToken: s_sourceTokens[i]
}),
// Create a remote token address that is different from CHAIN_SELECTOR_1
remoteToken: abi.encodePacked(
remoteToken: abi.encode(
uint256(uint160(s_destTokenBySourceToken[s_sourceTokens[i]])) + type(uint160).max + 1
)
});
Expand Down Expand Up @@ -1054,7 +1054,7 @@ contract MultiAggregateRateLimiter_onOutboundMessage is MultiAggregateRateLimite
localToken: s_sourceTokens[0]
}),
// Create a remote token address that is different from CHAIN_SELECTOR_1
remoteToken: abi.encodePacked(uint256(uint160(s_destTokenBySourceToken[s_sourceTokens[0]])) + type(uint160).max + 1)
remoteToken: abi.encode(uint256(uint160(s_destTokenBySourceToken[s_sourceTokens[0]])) + type(uint160).max + 1)
});
s_rateLimiter.updateRateLimitTokens(new MultiAggregateRateLimiter.LocalRateLimitToken[](0), tokensToAdd);

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ require (
github.com/shopspring/decimal v1.4.0
github.com/smartcontractkit/chain-selectors v1.0.21
github.com/smartcontractkit/chainlink-automation v1.0.4
github.com/smartcontractkit/chainlink-ccip v0.0.0-20240812165928-f1cc95338422
github.com/smartcontractkit/chainlink-ccip v0.0.0-20240811212735-84d06e9a5fc8
github.com/smartcontractkit/chainlink-common v0.2.1-0.20240717132349-ee5af9b79834
github.com/smartcontractkit/chainlink-cosmos v0.4.1-0.20240710121324-3ed288aa9b45
github.com/smartcontractkit/chainlink-data-streams v0.0.0-20240718160222-2dc0c8136bfa
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,8 @@ github.com/smartcontractkit/chain-selectors v1.0.21 h1:KCR9SA7PhOexaBzFieHoLv1Wo
github.com/smartcontractkit/chain-selectors v1.0.21/go.mod h1:d4Hi+E1zqjy9HqMkjBE5q1vcG9VGgxf5VxiRHfzi2kE=
github.com/smartcontractkit/chainlink-automation v1.0.4 h1:iyW181JjKHLNMnDleI8umfIfVVlwC7+n5izbLSFgjw8=
github.com/smartcontractkit/chainlink-automation v1.0.4/go.mod h1:u4NbPZKJ5XiayfKHD/v3z3iflQWqvtdhj13jVZXj/cM=
github.com/smartcontractkit/chainlink-ccip v0.0.0-20240811212735-84d06e9a5fc8 h1:LToLsAcgoIkt/CK1I68QhZEMwpLRmTUsKf0fLsEwyTg=
github.com/smartcontractkit/chainlink-ccip v0.0.0-20240811212735-84d06e9a5fc8/go.mod h1:/ZWraCBaDDgaIN1prixYcbVvIk/6HeED9+8zbWQ+TMo=
github.com/smartcontractkit/chainlink-ccip v0.0.0-20240812165928-f1cc95338422 h1:XKEmg6dOkCsyNcW3R+IhhrUYdVJTKirLL2sCCgzRWjU=
github.com/smartcontractkit/chainlink-ccip v0.0.0-20240812165928-f1cc95338422/go.mod h1:/ZWraCBaDDgaIN1prixYcbVvIk/6HeED9+8zbWQ+TMo=
github.com/smartcontractkit/chainlink-common v0.2.1-0.20240717132349-ee5af9b79834 h1:pTf4xdcmiWBqWZ6rTy2RMTDBzhHk89VC1pM7jXKQztI=
Expand Down

0 comments on commit 8d916f8

Please sign in to comment.