Skip to content

Commit d36f51c

Browse files
committed
fix: update to latest APIs
1 parent ca3ee55 commit d36f51c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/inspect.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ DashTx._debugPrint = async function (tx) {
152152
);
153153
lines.push("");
154154

155-
let txHash = await DashTx.hashPartial(tx.transaction, DashTx.SIGHASH_ALL);
155+
let txHex = `${tx.transaction}${tx.sigHashTypeHex}`;
156+
let txBytes = DashTx.utils.hexToBytes(txHex);
157+
let txHash = await DashTx.doubleSha256(txBytes);
156158
let txHashHex = DashTx.utils.bytesToHex(txHash);
157159
// TODO 'N/A' if not applicable
158160
lines.push(`Tx Hash: ${txHashHex}`);

0 commit comments

Comments
 (0)