🐛 check verify flag

This commit is contained in:
shivani 2021-06-07 11:20:01 +05:30
parent 2c001cc819
commit c4d1c697b4

View File

@ -27,13 +27,19 @@ task(`deploy-permission-manager`, `Deploys the PermissionManager contract`)
await permissionManagerInstance.deployTransaction.wait();
console.log('Permission manager address', permissionManagerInstance.address);
await verifyContract(eContractid.PermissionManager, permissionManagerInstance, []);
if (verify) {
await verifyContract(eContractid.PermissionManager, permissionManagerInstance, []);
}
// register the permission manager in the addresses provider
const addressesProvider = await getLendingPoolAddressesProvider();
const permissionManagerHash = ethers.utils.keccak256(ethers.utils.toUtf8Bytes("PERMISSION_MANAGER"));
const permissionManagerHash = ethers.utils.keccak256(
ethers.utils.toUtf8Bytes('PERMISSION_MANAGER')
);
await waitForTx(await addressesProvider.setAddress(permissionManagerHash, permissionManagerInstance.address));
await waitForTx(
await addressesProvider.setAddress(permissionManagerHash, permissionManagerInstance.address)
);
// store the permission manager contract in the DB
await insertContractAddressInDb(