We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fceebc commit 9d986c1Copy full SHA for 9d986c1
1 file changed
src/cmd/debug.ts
@@ -5,6 +5,7 @@ import { dumpTransaction } from '../tools/ckb-tx-dumper';
5
import path from 'path';
6
import { cccA } from '@ckb-ccc/core/advanced';
7
import { Network } from '../type/base';
8
+import { encodeBinPathForTerminal } from '../util/encoding';
9
10
export function debugTransaction(txHash: string, network: Network) {
11
const txFile = buildTxFileOptionBy(txHash, network);
@@ -91,7 +92,7 @@ export function buildTxFileOptionBy(txHash: string, network: Network) {
91
92
}
93
dumpTransaction({ rpc, txJsonFilePath, outputFilePath });
94
- const opt = `--tx-file ${outputFilePath}`;
95
+ const opt = `--tx-file ${encodeBinPathForTerminal(outputFilePath)}`;
96
return opt;
97
98
0 commit comments