Skip to content

Commit 013ae03

Browse files
committed
chore: remove unused 'keys'
1 parent 93bd37e commit 013ae03

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

demo.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,8 @@ async function main() {
424424
txInfo.outputs.sort(DashTx.sortOutputs);
425425
}
426426

427-
let keys = [];
428427
for (let input of txInfo.inputs) {
429428
let data = keysMap[input.address];
430-
let addressKey = await xreceiveKey.deriveAddress(data.index);
431-
keys.push(addressKey.privateKey);
432429
// DEBUG check pkh hex
433430
let pubKeyHashBytes = await DashKeys.addrToPkh(data.address, {
434431
version: 'testnet',
@@ -438,9 +435,8 @@ async function main() {
438435
}
439436
let txInfoSigned = await dashTx.hashAndSignAll(txInfo);
440437

441-
console.log('[debug], txInfo, keys, txSigned');
438+
console.log('[debug], txInfo, txSigned');
442439
console.log(txInfo);
443-
console.log(keys);
444440
console.log(txInfoSigned);
445441
await sleep(150);
446442
let txRpc = await rpc.sendRawTransaction(txInfoSigned.transaction);

0 commit comments

Comments
 (0)