Skip to content

Commit

Permalink
fix(debug): encoding --tx-file path (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
RetricSu authored Dec 4, 2024
1 parent 2fceebc commit 9d986c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { dumpTransaction } from '../tools/ckb-tx-dumper';
import path from 'path';
import { cccA } from '@ckb-ccc/core/advanced';
import { Network } from '../type/base';
import { encodeBinPathForTerminal } from '../util/encoding';

export function debugTransaction(txHash: string, network: Network) {
const txFile = buildTxFileOptionBy(txHash, network);
Expand Down Expand Up @@ -91,7 +92,7 @@ export function buildTxFileOptionBy(txHash: string, network: Network) {
}
dumpTransaction({ rpc, txJsonFilePath, outputFilePath });
}
const opt = `--tx-file ${outputFilePath}`;
const opt = `--tx-file ${encodeBinPathForTerminal(outputFilePath)}`;
return opt;
}

Expand Down

0 comments on commit 9d986c1

Please sign in to comment.