Skip to content

Commit

Permalink
fix: prepend txid with 0x in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
yknl committed Oct 15, 2020
1 parent 442bc3d commit 6c85a52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ async function sendTokens(network: CLINetworkAdapter, args: string[]): Promise<s
return response;
}
return {
txid: tx.txid(),
txid: `0x${tx.txid()}`,
transaction: generateExplorerTxPageUrl(tx.txid(), txNetwork),
};
})
Expand Down Expand Up @@ -620,7 +620,7 @@ async function contractDeploy(network: CLINetworkAdapter, args: string[]): Promi
return response;
}
return {
txid: tx.txid(),
txid: `0x${tx.txid()}`,
transaction: generateExplorerTxPageUrl(tx.txid(), txNetwork),
};
})
Expand Down Expand Up @@ -705,7 +705,7 @@ async function contractFunctionCall(network: CLINetworkAdapter, args: string[]):
return response;
}
return {
txid: tx.txid(),
txid: `0x${tx.txid()}`,
transaction: generateExplorerTxPageUrl(tx.txid(), txNetwork),
};
})
Expand Down

0 comments on commit 6c85a52

Please sign in to comment.