Skip to content

Commit ae6b831

Browse files
Merge pull request #5219 from BitGo/BTC-1450.utxo-bin-allow-base64
fix(utxo-bin): allow base64 txdata
2 parents 7c908ad + 25c32c6 commit ae6b831

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)