Skip to content

Commit 860e17f

Browse files
sczemborCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: sczembor <43810037+sczembor@users.noreply.github.com>
1 parent 78cf35e commit 860e17f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/btcindexer/src/btcindexer.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,9 +807,9 @@ describe("parseSuiRecipientFromOpReturn", () => {
807807
});
808808

809809
it("should return null if payload flag is not 0x00", () => {
810-
// this test will have to be udpated once we start supporting other flags
810+
// this test will have to be updated once we start supporting other flags
811811
const script = Buffer.concat([
812-
Buffer.from([OP_RETURN, 34]),
812+
Buffer.from([OP_RETURN, 33]),
813813
Buffer.from([0x01]), // flag 0x01
814814
Buffer.alloc(32, 0x01),
815815
]);
@@ -818,7 +818,7 @@ describe("parseSuiRecipientFromOpReturn", () => {
818818

819819
it("should return null if address length is not 32 bytes", () => {
820820
const script = Buffer.concat([
821-
Buffer.from([OP_RETURN, 31]),
821+
Buffer.from([OP_RETURN, 32]),
822822
Buffer.from([0x00]),
823823
Buffer.alloc(31, 0x01), // 31 bytes addr
824824
]);

0 commit comments

Comments
 (0)