Skip to content

Commit

Permalink
fix: remove 0x prefix from outputs (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Jun 26, 2023
1 parent f88bcc0 commit 07c91b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/util/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function parseSatPoint(satpoint: string): {
offset?: string;
} {
const [tx_id, vout, offset] = satpoint.split(':');
return { tx_id, vout: vout, offset };
return { tx_id: normalizedHexString(tx_id), vout: vout, offset };
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('EventServer', () => {
ordinal_block_height: 566462,
ordinal_offset: 0,
satpoint_post_inscription:
'0268dd9743c862d80ab02cb1d0228036cfe172522850eb96be60cfee14b31fb8:0:0',
'0x0268dd9743c862d80ab02cb1d0228036cfe172522850eb96be60cfee14b31fb8:0:0',
},
},
],
Expand Down

0 comments on commit 07c91b9

Please sign in to comment.