Skip to content

Commit

Permalink
fix: wrong log for input txid (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab authored Dec 11, 2024
1 parent a2e8b0f commit 4f6cb91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@babylonlabs-io/btc-staking-ts",
"version": "0.4.0-canary.4",
"version": "0.4.0-canary.5",
"description": "Library exposing methods for the creation and consumption of Bitcoin transactions pertaining to Babylon's Bitcoin Staking protocol.",
"module": "dist/index.js",
"main": "dist/index.cjs",
Expand Down
2 changes: 1 addition & 1 deletion src/staking/psbt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const getInputWitnessUtxo = (
);
if (!inputUTXO) {
throw new Error(
`Input UTXO not found for txid: ${input.hash.toString("hex")} `
`Input UTXO not found for txid: ${Buffer.from(input.hash).reverse().toString("hex")} `
+ `and vout: ${input.index}`
);
}
Expand Down

0 comments on commit 4f6cb91

Please sign in to comment.