Skip to content

Commit

Permalink
create denyListChain and whitelistChain functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginowine committed Dec 5, 2023
1 parent 4016aed commit 0450544
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions contracts/CrossNftSourceMinter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,19 @@ contract CrossNftSourceMinter is Withdraw {
constructor(address router, address link) {
i_router = router;
i_link = link;
LinkTokenInterface(i_link).approve(i_router, type(uint256).max);
}

receive() external payable {}
function whitelistChain(
uint64 _destinationChainSelector
) external onlyOwner {
whitelistedChains[_destinationChainSelector] = true;
}

function denylistChain(
uint64 _destinationChainSelector
) external onlyOwner {
whitelistedChains[_destinationChainSelector] = false;
}

function mint(
uint64 destinationChainSelector,
Expand Down Expand Up @@ -80,4 +89,6 @@ contract CrossNftSourceMinter is Withdraw {

emit MessageSent(messageId);
}

receive() external payable {}
}

0 comments on commit 0450544

Please sign in to comment.