From 5b64f2494e606befd3dbbda4bbd7b6a06593a3ed Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 21 Apr 2023 19:54:13 +0800 Subject: [PATCH] add sth for deploy script --- migrations/2_depoly_etc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/migrations/2_depoly_etc.js b/migrations/2_depoly_etc.js index 72c2681..e49accd 100644 --- a/migrations/2_depoly_etc.js +++ b/migrations/2_depoly_etc.js @@ -26,7 +26,7 @@ module.exports = async function (deployer, network, accounts) { // config.admins.confirmers, // config.admins.executors // ); - // const walletInstance = await Wallet.deployed(); + const walletInstance = await Wallet.deployed(); // if (walletInstance) { // console.log("BEMultiSigWallet successfully deployed."); // console.log("address: " + walletInstance.address); @@ -47,5 +47,9 @@ module.exports = async function (deployer, network, accounts) { console.log("address: " + distributorInstance.address); } await badgeInstance.setMintRole(distributorInstance.address); + await distributorInstance.grantRole( + "0xa076a07f65bcd51bcb15a0f01a65bc18f2d922acb81bcfd8af4caf5adb557091", + walletInstance.address + ); console.log("success add distributor to badge's mint role"); };