Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKurt committed Jan 16, 2024
1 parent 59729e4 commit bd76947
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/common/src/allo/backends/allo-v2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand All @@ -16,6 +15,8 @@ const transactionSender = createMockTransactionSender();
const projectRegistryAddress = zeroAddress;
const chainId = 1;

const alloV2RegistryAddress = "0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3";

const profileCreationEvent = {
indexed: {
profileId:
Expand Down Expand Up @@ -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();
});
Expand Down

0 comments on commit bd76947

Please sign in to comment.