-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing prettier dependency, move prettier config to package.json…
… for bridge JS files, reformat all files related to PR, use bridge proxy in 22_deploy_federation if available instead of deploying the contract
- Loading branch information
Marccio Silva
committed
Aug 27, 2021
1 parent
62a0a94
commit 2d2b55f
Showing
8 changed files
with
470 additions
and
261 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
module.exports = async function({ getNamedAccounts, deployments }) { // HardhatRuntimeEnvironment | ||
const { deployer, multiSig, proxyAdmin } = await getNamedAccounts(); | ||
const { deploy, log, execute } = deployments; | ||
module.exports = async function({getNamedAccounts, deployments}) { // HardhatRuntimeEnvironment | ||
const {deployer, multiSig, proxyAdmin} = await getNamedAccounts(); | ||
const {deploy, log, execute} = deployments; | ||
|
||
if (!proxyAdmin) { | ||
const deployResult = await deploy("ProxyAdmin", { | ||
const deployResult = await deploy('ProxyAdmin', { | ||
from: deployer, | ||
log: true, | ||
log: true | ||
}); | ||
|
||
if (deployResult.newlyDeployed) { | ||
log( | ||
`Contract ProxyAdmin deployed at ${deployResult.address} using ${deployResult.receipt.gasUsed.toString()} gas` | ||
); | ||
const MultiSigWallet = await deployments.get("MultiSigWallet"); | ||
await execute("ProxyAdmin", { from: deployer }, "transferOwnership", multiSig ?? MultiSigWallet.address); | ||
const MultiSigWallet = await deployments.get('MultiSigWallet'); | ||
await execute('ProxyAdmin', {from: deployer}, 'transferOwnership', multiSig ?? MultiSigWallet.address); | ||
log(`Transfered Ownership to MultiSig`); | ||
} | ||
} | ||
}; | ||
module.exports.id = "deploy_proxyAdmin"; // id required to prevent reexecution | ||
module.exports.tags = ["ProxyAdmin"]; | ||
module.exports.dependencies = ["MultiSigWallet"]; | ||
module.exports.id = 'deploy_proxyAdmin'; // id required to prevent reexecution | ||
module.exports.tags = ['ProxyAdmin']; | ||
module.exports.dependencies = ['MultiSigWallet']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.