Skip to content

Commit 25c32c6

Browse files
fix(utxo-bin): allow base64 txdata
Issue: BTC-1450
1 parent 11bd484 commit 25c32c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/utxo-bin/src/commands/cmdParseTx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const cmdParseTx = {
128128
throw new Error(`no txdata`);
129129
}
130130

131-
const bytes = stringToBuffer(string, 'hex');
131+
const bytes = stringToBuffer(string, ['hex', 'base64']);
132132

133133
let tx = utxolib.bitgo.isPsbt(bytes)
134134
? utxolib.bitgo.createPsbtFromBuffer(bytes, argv.network)

0 commit comments

Comments
 (0)