diff --git a/package.json b/package.json index 2a1ba9c..281079f 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,6 @@ "@cspell/dict-software-terms": "3.4.6", "@cspell/dict-typescript": "3.1.5", "@eslint/js": "9.5.0", - "@ethersproject/providers": "^5.7.2", "@jest/globals": "29.7.0", "@mswjs/data": "0.16.1", "@types/node": "20.14.5", diff --git a/src/handlers/query-wallet.ts b/src/handlers/query-wallet.ts index 982946a..c80b127 100644 --- a/src/handlers/query-wallet.ts +++ b/src/handlers/query-wallet.ts @@ -50,7 +50,6 @@ export async function registerWallet(context: Context, body: string) { // Makes sure that the address is check-summed address = ethers.getAddress(address); - if (payload.comment) { const { wallet } = adapters.supabase; await wallet.upsertWalletAddress(context, address); diff --git a/tests/main.test.ts b/tests/main.test.ts index eb71b0e..808f827 100644 --- a/tests/main.test.ts +++ b/tests/main.test.ts @@ -1,6 +1,5 @@ import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, jest } from "@jest/globals"; import { ethers } from "ethers"; -import { JsonRpcProvider } from "@ethersproject/providers"; import { plugin } from "../src/plugin"; import { PluginInputs } from "../src/types"; import { db } from "./__mocks__/db"; @@ -8,7 +7,6 @@ import { server } from "./__mocks__/node"; import commentCreatedPayload from "./__mocks__/payloads/comment-created.json"; import dbSeed from "./__mocks__/db-seed.json"; import { Logs } from "@ubiquity-os/ubiquity-os-logger"; -import { RPCHandler } from "@ubiquity-dao/rpc-handler"; beforeAll(() => server.listen()); afterEach(() => server.resetHandlers()); @@ -34,11 +32,6 @@ describe("Wallet command tests", () => { }); it("Should link a wallet", async () => { - jest - .spyOn(RPCHandler.prototype, "getFirstAvailableRpcProvider") - .mockResolvedValue(new JsonRpcProvider({ url: "https://fastethrpc.com", skipFetchSetup: true }, Number(1))); - jest.spyOn(JsonRpcProvider.prototype, "resolveName").mockResolvedValue("0xefC0e701A824943b469a694aC564Aa1efF7Ab7dd"); - const spy = jest.spyOn(Logs.prototype, "ok"); await plugin( { diff --git a/yarn.lock b/yarn.lock index 84cf006..c0e175d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1357,7 +1357,7 @@ dependencies: "@ethersproject/logger" "^5.7.0" -"@ethersproject/providers@5.7.2", "@ethersproject/providers@^5.7.2": +"@ethersproject/providers@5.7.2": version "5.7.2" resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.7.2.tgz#f8b1a4f275d7ce58cf0a2eec222269a08beb18cb" integrity sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg==