[英]distribute the team NFT(erc721)token volume
我想知道如何让我的队友在不支付以太币的情况下进行铸造。 (用合约钱包中的 Ether 支付 gas。)你能给我一些关于如何分配团队体积的想法吗?
constructor(address[] _teammates)
for(uint256 i = 0; i < _teammates.length; i++){
_mint(_teammates[i], i); // mint i'th token to i'th teammate
}
}
constructor(address[] _teammates)
teammates = _teammates;
}
function distributeTokensToTeam() public onlyOwner{
for(uint256 i = 0; i < teammates.length; i++){
transfer(teammates[i], i); // send i'th token to i'th teammate
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.