[英]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.