更新userminter factory的abi和地址
This commit is contained in:
parent
6353d0e8d2
commit
70b20cded1
@ -3235,7 +3235,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"schemaVersion": "3.4.11",
|
"schemaVersion": "3.4.11",
|
||||||
"updatedAt": "2023-06-06T08:20:35.317Z",
|
"updatedAt": "2023-06-06T11:06:42.487Z",
|
||||||
"networkType": "ethereum",
|
"networkType": "ethereum",
|
||||||
"devdoc": {
|
"devdoc": {
|
||||||
"kind": "dev",
|
"kind": "dev",
|
||||||
|
File diff suppressed because one or more lines are too long
@ -92,16 +92,19 @@ module.exports = async function main(callback) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const factoryInstance = await UserMinterFactory.deployed();
|
const factoryInstance = await await UserMinterFactory.at(
|
||||||
|
cfgs.find((c) => c.name === "UserMinterFactory").address
|
||||||
|
);
|
||||||
|
|
||||||
if (!factoryInstance) {
|
if (!factoryInstance) {
|
||||||
console.error("no factoryInstance");
|
console.error("no factoryInstance");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await factoryInstance.updateExecutor(config.admins.admin);
|
await factoryInstance.updateExecutor(config.admins.admin);
|
||||||
await heroInstance.setMintFactory(factoryInstance.address);
|
await heroInstance.setMintRole(factoryInstance.address);
|
||||||
await equipInstance.setMintFactory(factoryInstance.address);
|
await equipInstance.setMintRole(factoryInstance.address);
|
||||||
await chipInstance.setMintFactory(factoryInstance.address);
|
await chipInstance.setMintRole(factoryInstance.address);
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
`Allow factory ${factoryInstance.address} to mint contract \n hero: ${heroInstance.address}, \n equip: ${equipInstance.address}, \n chip: ${chipInstance.address}`
|
`Allow factory ${factoryInstance.address} to mint contract \n hero: ${heroInstance.address}, \n equip: ${equipInstance.address}, \n chip: ${chipInstance.address}`
|
||||||
|
@ -52,5 +52,11 @@
|
|||||||
"type": "logic",
|
"type": "logic",
|
||||||
"json": "assets/contracts/BENftMarket.json",
|
"json": "assets/contracts/BENftMarket.json",
|
||||||
"address": "0xb80E19c50747972E735c68C0BA5651AD952d70BC"
|
"address": "0xb80E19c50747972E735c68C0BA5651AD952d70BC"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "UserMinterFactory",
|
||||||
|
"type": "logic",
|
||||||
|
"json": "assets/contracts/UserMinterFactory.json",
|
||||||
|
"address": "0x014ea60aD9842fb28d3B0BfeCb1bb8EF46c17E34"
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
x
Reference in New Issue
Block a user