Skip to content

Commit

Permalink
Fix for GnosisSafeL2
Browse files Browse the repository at this point in the history
  • Loading branch information
MudDev committed May 30, 2024
1 parent 5aa40eb commit 2b3b790
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions deploy/deploy_ownablee.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
module.exports = async function ({ getNamedAccounts, deployments }) {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();

const { getConfig } = require('../scripts/utils');

const network = await ethers.provider.getNetwork();
const chainId = network.chainId;

let GnosisSafeAddress = GnosisSafeL2;
if (GnosisSafeAddress == "") {
this.GnosisSafe = await deployments.get('GnosisSafeL2');
GnosisSafeAddress = this.GnosisSafe.address;
}

const {vabToken, usdcAdress, walletAddress, GnosisSafeL2} = getConfig(chainId);

console.log("------------- Ownablee Deployment -----------------");
console.log({vabToken, usdcAdress, walletAddress, GnosisSafeL2});
await deploy('Ownablee', {
from: deployer,
args: [
walletAddress,
vabToken,
usdcAdress,
GnosisSafeAddress,
// "0xe0536a4D730a78DB8B4c4605D73e107201d9543e"
// "0x3E5e853d1784cDB519DB1eB175B374FB53FE285C"
],
log: true,
deterministicDeployment: false,
skipIfAlreadyDeployed: false,
});

this.Ownablee = await deployments.get('Ownablee');
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();

const { getConfig } = require('../scripts/utils');

const network = await ethers.provider.getNetwork();
const chainId = network.chainId;

const { vabToken, usdcAdress, walletAddress, GnosisSafeL2 } = getConfig(chainId);

let GnosisSafeAddress = GnosisSafeL2;
if (GnosisSafeAddress == "") {
this.GnosisSafe = await deployments.get('GnosisSafeL2');
GnosisSafeAddress = this.GnosisSafe.address;
}

console.log("------------- Ownablee Deployment -----------------");
console.log({ vabToken, usdcAdress, walletAddress, GnosisSafeL2 });

await deploy('Ownablee', {
from: deployer,
args: [
walletAddress,
vabToken,
usdcAdress,
GnosisSafeAddress,
// "0xe0536a4D730a78DB8B4c4605D73e107201d9543e"
// "0x3E5e853d1784cDB519DB1eB175B374FB53FE285C"
],
log: true,
deterministicDeployment: false,
skipIfAlreadyDeployed: false,
});

this.Ownablee = await deployments.get('Ownablee');
};

module.exports.id = 'deploy_ownablee'
Expand Down

0 comments on commit 2b3b790

Please sign in to comment.