Skip to content

Commit

Permalink
new: add script to check deploy params. (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
twygod authored Nov 17, 2021
1 parent 9f08b81 commit 7e41676
Show file tree
Hide file tree
Showing 4 changed files with 410 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/deployAaveAdapter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const configs = require("../deployConfig.json");

module.exports = async ({getNamedAccounts, deployments, network}) => {
module.exports = async ({getNamedAccounts, deployments, getChainId, network}) => {
const {deploy} = deployments;
const {deployer} = await getNamedAccounts();
const chainId = await getChainId();
Expand Down
1 change: 0 additions & 1 deletion deploy/deployUnionToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const configs = require("../deployConfig.json");
module.exports = async ({getNamedAccounts, deployments, getChainId}) => {
const {deploy} = deployments;
const {deployer} = await getNamedAccounts();

const chainId = await getChainId();

await deploy("UnionToken", {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"compile": "yarn hardhat compile",
"test": "yarn hardhat test",
"deploy": "hardhat deploy --network",
"deploy": "yarn hardhat deploy --network",
"checkDeploy": "yarn hardhat run scripts/checkDeploy.js --network",
"coverage": "yarn hardhat coverage",
"lint": "yarn solhint contracts/**/*.sol",
"prettier:solidity": "npx prettier --write contracts/**/*.sol",
Expand Down
Loading

0 comments on commit 7e41676

Please sign in to comment.