Skip to content

Commit 2c86f14

Browse files
committed
fix: failing test, removed unnecessary/outdated deps like ethers-waffle
1 parent be01800 commit 2c86f14

File tree

7 files changed

+197
-5070
lines changed

7 files changed

+197
-5070
lines changed

contracts/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sign-git-tag=true

contracts/hardhat.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable node/no-missing-require */
22
import * as dotenv from "dotenv";
33
import { HardhatUserConfig } from "hardhat/config";
4-
import "@nomiclabs/hardhat-waffle";
4+
import "@nomicfoundation/hardhat-chai-matchers";
55
import "@typechain/hardhat";
66
import "hardhat-deploy-tenderly";
77
import "hardhat-gas-reporter";
@@ -80,11 +80,11 @@ const config: HardhatUserConfig = {
8080
chainId: 421613,
8181
url: "https://goerli-rollup.arbitrum.io/rpc",
8282
accounts: [
83-
process.env.ARB_GOERLI_PRIVATE_KEY_WALLET_1 as string,
84-
process.env.ARB_GOERLI_PRIVATE_KEY_WALLET_2 as string,
85-
process.env.ARB_GOERLI_PRIVATE_KEY_WALLET_3 as string,
86-
process.env.ARB_GOERLI_PRIVATE_KEY_WALLET_4 as string,
87-
process.env.ARB_GOERLI_PRIVATE_KEY_WALLET_5 as string,
83+
(process.env.ARB_GOERLI_PRIVATE_KEY_WALLET_1 as string) || "",
84+
(process.env.ARB_GOERLI_PRIVATE_KEY_WALLET_2 as string) || "",
85+
(process.env.ARB_GOERLI_PRIVATE_KEY_WALLET_3 as string) || "",
86+
(process.env.ARB_GOERLI_PRIVATE_KEY_WALLET_4 as string) || "",
87+
(process.env.ARB_GOERLI_PRIVATE_KEY_WALLET_5 as string) || "",
8888
],
8989
live: true,
9090
saveDeployments: true,

contracts/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
},
3636
"devDependencies": {
3737
"@nomicfoundation/hardhat-chai-matchers": "^1.0.6",
38-
"@nomiclabs/hardhat-ethers": "npm:[email protected]",
39-
"@nomiclabs/hardhat-waffle": "^2.0.5",
38+
"@nomiclabs/hardhat-ethers": "^2.2.3",
4039
"@openzeppelin/contracts": "^4.8.2",
4140
"@typechain/ethers-v5": "^10.2.0",
4241
"@typechain/hardhat": "^6.1.5",
@@ -46,15 +45,13 @@
4645
"@typescript-eslint/eslint-plugin": "^5.58.0",
4746
"@typescript-eslint/parser": "^5.58.0",
4847
"chai": "^4.3.7",
49-
"chai-ethers": "^0.0.1",
5048
"dotenv": "^16.0.3",
51-
"ethereum-waffle": "^3.4.4",
5249
"ethereumjs-util": "^7.1.5",
5350
"ethers": "^5.7.2",
5451
"hardhat": "^2.13.1",
5552
"hardhat-contract-sizer": "^2.8.0",
5653
"hardhat-deploy": "^0.11.26",
57-
"hardhat-deploy-ethers": "^0.3.0-beta.13",
54+
"hardhat-deploy-ethers": "^0.4.0-next.1",
5855
"hardhat-deploy-tenderly": "^0.2.0",
5956
"hardhat-docgen": "^1.3.0",
6057
"hardhat-gas-reporter": "^1.0.9",

contracts/test/chai-setup.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

contracts/test/evidence/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
import { use, expect } from "chai";
1+
import { expect } from "chai";
22
import { ethers } from "hardhat";
33
import { BigNumber } from "ethers";
4-
import { solidity } from "ethereum-waffle";
54
const hre = require("hardhat");
65

7-
use(solidity);
8-
96
const Party = {
107
None: 0,
118
Submitter: 1,

contracts/test/integration/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ describe("Integration tests", async () => {
164164
expect((await core.disputes(0)).period).to.equal(Period.vote);
165165
await disputeKit.connect(await ethers.getSigner(deployer)).castVote(0, [0, 1, 2], 0, 0, "");
166166
await core.passPeriod(0);
167+
168+
await network.provider.send("evm_increaseTime", [100]); // Wait for the appeal period
169+
await network.provider.send("evm_mine");
170+
167171
await core.passPeriod(0);
168172
expect((await core.disputes(0)).period).to.equal(Period.execution);
169173
expect(await core.execute(0, 0, 1000)).to.emit(core, "TokenAndETHShift");
@@ -174,7 +178,7 @@ describe("Integration tests", async () => {
174178
expect(tx4).to.emit(arbitrable, "Ruling").withArgs(foreignGateway.address, 1, 0); // The ForeignGateway starts counting disputeID from 1.
175179
});
176180

177-
async function mineBlocks(n) {
181+
async function mineBlocks(n: number) {
178182
for (let index = 0; index < n; index++) {
179183
await network.provider.send("evm_mine");
180184
}

0 commit comments

Comments
 (0)