update claim address

This commit is contained in:
zhl 2023-06-14 14:34:43 +08:00
parent 7a40ca526f
commit d8d0a8a18c
4 changed files with 84 additions and 80 deletions

File diff suppressed because one or more lines are too long

View File

@ -80,8 +80,8 @@ contract NFTSbt is AccessControl, ERC721Enumerable {
if (supplyLimit > 0) {
require((totalSupply() + 1) <= supplyLimit, "Exceed the total supply");
}
uint256 tokenId = _tokenIdCounter.current();
_tokenIdCounter.increment();
uint256 tokenId = _tokenIdCounter.current();
_safeMint(to, tokenId);
return tokenId;
}

View File

@ -1,6 +1,7 @@
const Factory = artifacts.require("activity/ClaimBoxFactory");
const Box = artifacts.require("tokens/erc721/NFTSbt");
const base = require("../scripts/base");
const config = require("../config/config");
module.exports = async function (deployer, network, accounts) {
const name = "Gacha";
@ -38,4 +39,7 @@ module.exports = async function (deployer, network, accounts) {
await factoryInstance.addTokenSupport(boxInstance.address);
console.log(`success add token support to: ${boxInstance.address}`);
await factoryInstance.updateExecutor(config.admins.admin);
console.log(`success update executor to: ${config.admins.admin}`);
};

View File

@ -57,12 +57,12 @@
"name": "NFTSbt",
"type": "erc721",
"json": "assets/contracts/NFTSbt.json",
"address": "0x46675eecD0Bb2dcdE3f9b76A11EE7f6DfB174EcA"
"address": "0x86A8E6a23039c28b57C306b25dF257817957F132"
},
{
"name": "ClaimBoxFactory",
"type": "logic",
"json": "assets/contracts/ClaimBoxFactory.json",
"address": "0xc63ed18feE4C3D62b87DfCE5b5F4DafD8905D9B2"
"address": "0xF06038807A700d67be3AA8a7D752761EaC88ab82"
}
]