Skip to content

Commit

Permalink
fixed seq rewards sender initiator params
Browse files Browse the repository at this point in the history
  • Loading branch information
BkChoy committed Mar 20, 2024
1 parent 447cd18 commit 77d75b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/metisStaking/ccip/SequencerRewardsCCIPSender.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ contract SequencerRewardsCCIPSender is UUPSUpgradeable, OwnableUpgradeable {
* @param _router address of the CCIP router
* @param _linkToken address of the LINK token
* @param _metisToken address of the METIS token
* @param _transferInitiator address authorized to initiate rewards transfers
* @param _destinationChainSelector id of destination chain
* @param _extraArgs extra args for reward token CCIP transfer
**/
function initialize(
address _router,
address _linkToken,
address _metisToken,
address _transferInitiator,
uint64 _destinationChainSelector,
bytes memory _extraArgs
) public initializer {
Expand All @@ -59,6 +61,7 @@ contract SequencerRewardsCCIPSender is UUPSUpgradeable, OwnableUpgradeable {
router = IRouterClient(_router);
linkToken = IERC20Upgradeable(_linkToken);
metisToken = IERC20Upgradeable(_metisToken);
transferInitiator = _transferInitiator;
destinationChainSelector = _destinationChainSelector;
extraArgs = _extraArgs;

Expand Down
1 change: 1 addition & 0 deletions test/metisStaking/sequencer-rewards-ccip-sender.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe('SequencerRewardsCCIPSender', () => {
router.address,
linkToken.address,
token.address,
accounts[0],
77,
'0x1111',
])) as SequencerRewardsCCIPSender
Expand Down

0 comments on commit 77d75b4

Please sign in to comment.