Skip to content

Instantly share code, notes, and snippets.

@prajwolrg
Created November 1, 2022 10:56
Show Gist options
  • Save prajwolrg/4bade8fb98a80780b7750ccd9f6e9c0e to your computer and use it in GitHub Desktop.
Save prajwolrg/4bade8fb98a80780b7750ccd9f6e9c0e to your computer and use it in GitHub Desktop.
Send To NFT
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