mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
🐛 check verify flag
This commit is contained in:
parent
2c001cc819
commit
c4d1c697b4
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user