From 736f5a611fda230e1e7451d26b0daa19beb68da0 Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Mon, 21 Feb 2022 17:21:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9market=E7=9A=84=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- migrations/4_deploy_market.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/migrations/4_deploy_market.js b/migrations/4_deploy_market.js index af97cc3..06970e3 100644 --- a/migrations/4_deploy_market.js +++ b/migrations/4_deploy_market.js @@ -25,10 +25,13 @@ module.exports = async function (deployer, network, accounts) { try { let heroInstance = await Hero.deployed(); await heroInstance.addApprovalWhitelist(marketInstance.address); + await heroInstance.setApprovalForAll(marketInstance.address); let equipInstance = await Equip.deployed(); await equipInstance.addApprovalWhitelist(marketInstance.address); + await equipInstance.setApprovalForAll(marketInstance.address); let chipInstance = await Chip.deployed(); await chipInstance.addApprovalWhitelist(marketInstance.address); + await chipInstance.setApprovalForAll(marketInstance.address); console.log( `Allow operation ${marketInstance.address} to reduce gas fee` );