Skip to content

Commit

Permalink
Merge pull request #5219 from BitGo/BTC-1450.utxo-bin-allow-base64
Browse files Browse the repository at this point in the history
fix(utxo-bin): allow base64 txdata
  • Loading branch information
OttoAllmendinger authored Dec 9, 2024
2 parents 7c908ad + 25c32c6 commit ae6b831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/utxo-bin/src/commands/cmdParseTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const cmdParseTx = {
throw new Error(`no txdata`);
}

const bytes = stringToBuffer(string, 'hex');
const bytes = stringToBuffer(string, ['hex', 'base64']);

let tx = utxolib.bitgo.isPsbt(bytes)
? utxolib.bitgo.createPsbtFromBuffer(bytes, argv.network)
Expand Down

0 comments on commit ae6b831

Please sign in to comment.