Skip to content

Commit

Permalink
Merge pull request #202 from ckb-devrel/v0.3.x
Browse files Browse the repository at this point in the history
Merge v0.3.3 into master
  • Loading branch information
RetricSu authored Dec 4, 2024
2 parents a5333d7 + c1ea100 commit ec3cc07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion src/node/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function getVersionFromBinary(binPath: string): string | null {
encoding: 'utf-8',
});

const versionMatch = versionOutput.match(/(\d+\.\d+\.\d+)/);
const versionMatch = versionOutput.match(/(\d+\.\d+\.\d+(-rc\d+)?)/);
if (versionMatch) {
return versionMatch[0];
}
Expand Down

0 comments on commit ec3cc07

Please sign in to comment.