From bd7694737007e99a094f61f1b20dee021b971b52 Mon Sep 17 00:00:00 2001 From: 0xKurt Date: Tue, 16 Jan 2024 18:02:50 +0100 Subject: [PATCH] updated test --- packages/common/src/allo/backends/allo-v2.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/common/src/allo/backends/allo-v2.test.ts b/packages/common/src/allo/backends/allo-v2.test.ts index d19cb76259..8d8c2c2708 100644 --- a/packages/common/src/allo/backends/allo-v2.test.ts +++ b/packages/common/src/allo/backends/allo-v2.test.ts @@ -7,7 +7,6 @@ import { } from "../transaction-sender"; import { Result, success } from "../common"; import RegistryABI from "../abis/allo-v2/Registry"; -import * as registryConfig from "@allo-team/allo-v2-sdk/dist/Registry/registry.config"; const zeroTxHash = ("0x" + "0".repeat(64)) as Hex; const ipfsUploader = vi.fn().mockResolvedValue(success("ipfsHash")); @@ -16,6 +15,8 @@ const transactionSender = createMockTransactionSender(); const projectRegistryAddress = zeroAddress; const chainId = 1; +const alloV2RegistryAddress = "0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3"; + const profileCreationEvent = { indexed: { profileId: @@ -80,8 +81,8 @@ describe("AlloV2", () => { expect(transactionSender.sentTransactions).toHaveLength(1); expect(ipfsResult!).toEqual(success("ipfsHash")); expect(txResult!).toEqual(success(zeroTxHash)); - expect(transactionSender.sentTransactions[0].to).toEqual( - registryConfig.address + expect(transactionSender.sentTransactions[0].to.toLowerCase()).toEqual( + alloV2RegistryAddress.toLocaleLowerCase() ); expect(txStatusResult!).toBeTruthy(); });