Ethers v5 -> v6 migration

Updated dependencies and removed unused ones.
This commit is contained in:
hueso
2025-08-02 21:09:40 -03:00
parent 811d5344a3
commit f924593ee2
18 changed files with 3669 additions and 7066 deletions

View File

@@ -1,6 +1,6 @@
import "@nomicfoundation/hardhat-chai-matchers";
import { loadFixture } from "@nomicfoundation/hardhat-network-helpers";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { SignerWithAddress } from "@nomicfoundation/hardhat-ethers/signers";
import { expect } from "chai";
import { ethers, network } from "hardhat";
@@ -15,7 +15,7 @@ describe("Reputation", () => {
before("Set signers and reset network", async () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[owner] = await (ethers as any).getSigners();
[owner] = await ethers.getSigners();
await network.provider.send("hardhat_reset");
});
@@ -60,7 +60,7 @@ describe("Reputation", () => {
},
{
x: Number.MAX_SAFE_INTEGER,
shouldRevert: "overflow",
expected: curve(Number.MAX_SAFE_INTEGER),
},
{
x: Number.POSITIVE_INFINITY,