diff --git a/package-lock.json b/package-lock.json index c97f59f..af91b91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@babylonlabs-io/btc-staking-ts", - "version": "0.4.0-canary.4", + "version": "0.4.0-canary.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@babylonlabs-io/btc-staking-ts", - "version": "0.4.0-canary.4", + "version": "0.4.0-canary.5", "license": "SEE LICENSE IN LICENSE", "dependencies": { "@bitcoin-js/tiny-secp256k1-asmjs": "2.2.3", diff --git a/package.json b/package.json index 0f9772c..21c03be 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/staking/psbt.ts b/src/staking/psbt.ts index a4e0331..13bcef8 100644 --- a/src/staking/psbt.ts +++ b/src/staking/psbt.ts @@ -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}` ); }