Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petarTxFusion committed Dec 17, 2024
1 parent e0033d4 commit 55aacc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,5 @@ describe("normalizeAddressTransformer", () => {
const result = normalizeAddressTransformer.from(buffer);
expect(result).toStrictEqual("0xF754FF5E8A6F257e162F72578a4bB0493c068111");
});

it("returns empty string for empty buffer", () => {
const buffer = Buffer.from("", "hex");
const result = normalizeAddressTransformer.from(buffer);
expect(result).toStrictEqual("");
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe("TransactionService", () => {
l1BatchNumber: blockDetails.l1BatchNumber,
receiptStatus: transactionReceipt.status,
to: undefined,
contractAddress: "0x",
contractAddress: null,
});
});

Expand Down Expand Up @@ -186,7 +186,7 @@ describe("TransactionService", () => {
revertReason: traceTransactionResult.revertReason,
isEvmLike: false,
to: undefined,
contractAddress: "0x",
contractAddress: null,
});
});
});
Expand All @@ -202,7 +202,7 @@ describe("TransactionService", () => {
receiptStatus: 0,
isEvmLike: false,
to: undefined,
contractAddress: "0x",
contractAddress: null,
});
});
});
Expand Down

0 comments on commit 55aacc3

Please sign in to comment.