Is it possible to transfer nft right after I minted it via another contract?
Mint function:
function publicMint(uint quantity) public payable {
require(isPublicMintActive, "Public mint not active");
require(publicMinted[msg.sender] + quantity <= maxPerAddress, "Wallet Max Reached");
require(totalSupply() + quantity <= quantityForMint, "Minted Out");
require(tokenPrice * quantity <= msg.value, "Insufficient Eth");
_minttokens(msg.sender, quantity);
publicMinted[msg.sender] += quantity;
}
My mint function
function mint(uint _numberOfTokens) public payable {
contractTarget.publicMint(_numberOfTokens);
}
And then how to transfer the nft to my wallet?