function crossChainTransfer(
uint256 crossChainId,
address to,
uint256 tokenId
) external {
if (!_isValidChainId(crossChainId)) revert InvalidDestinationChainId();
if (!_isApprovedOrOwner(_msgSender(), tokenId)) revert InvalidTransferCaller();
_burnWarrior(tokenId);
emit CrossChainTransfer(
crossChainId,
addressByChainId[crossChainId],
abi.encode(tokenId, msg.sender, to)
)
}
Last active
October 12, 2022 20:11
-
-
Save m9800/a7d9b89701b8b06663a2bd98f54face5 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment