Created
November 1, 2022 10:56
-
-
Save prajwolrg/4bade8fb98a80780b7750ccd9f6e9c0e to your computer and use it in GitHub Desktop.
Send To NFT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.15; | |
function _sendToNFT( | |
uint256 tokenId, | |
uint256 destinationId, | |
address from, | |
address to | |
) private { | |
IRMRKNesting destContract = IRMRKNesting(to); | |
destContract.addChild(destinationId, tokenId); | |
_afterTokenTransfer(from, to, tokenId); | |
emit Transfer(from, to, tokenId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment