Skip to content

Commit 15672af

Browse files
committed
fix: toolchain
1 parent 92e0b5a commit 15672af

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

contracts/deploy/00-home-chain-arbitrable.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const deployArbitration: DeployFunction = async (hre: HardhatRuntimeEnvironment)
4949
};
5050

5151
deployArbitration.tags = ["HomeArbitrable"];
52+
deployArbitration.dependencies = ["Arbitration"];
5253
deployArbitration.skip = async ({ getChainId }) => {
5354
const chainId = Number(await getChainId());
5455
return !HomeChains[chainId];

contracts/deploy/00-home-chain-arbitration.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ deployArbitration.skip = async ({ getChainId }) => {
129129
return !HomeChains[chainId];
130130
};
131131

132-
const deployERC20AndFaucet = async (hre: HardhatRuntimeEnvironment, deployer: string, ticker: string) => {
132+
const deployERC20AndFaucet = async (
133+
hre: HardhatRuntimeEnvironment,
134+
deployer: string,
135+
ticker: string
136+
): Promise<string> => {
133137
const { deploy } = hre.deployments;
134138
const erc20 = await deploy(ticker, {
135139
from: deployer,
@@ -149,7 +153,7 @@ const deployERC20AndFaucet = async (hre: HardhatRuntimeEnvironment, deployer: st
149153
const deployerBalance = await erc20Instance.balanceOf(deployer);
150154
if (deployerBalance.gte(funding) && faucetBalance.isZero()) {
151155
console.log("Funding %sFaucet with %d", ticker, funding);
152-
return erc20Instance.transfer(faucet.address, funding);
156+
await erc20Instance.transfer(faucet.address, funding);
153157
}
154158
return erc20.address;
155159
};

contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"clean": "hardhat clean",
2020
"check": "hardhat check",
2121
"test": "TS_NODE_TRANSPILE_ONLY=1 hardhat test",
22-
"start": "hardhat node",
22+
"start": "hardhat node --tags nop",
2323
"start-local": "hardhat node --tags Arbitration,HomeArbitrable --hostname 0.0.0.0",
2424
"deploy": "hardhat deploy",
2525
"deploy-local": "hardhat deploy --tags Arbitration,HomeArbitrable --network localhost",

0 commit comments

Comments
 (0)