Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Fix CLI command
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Mar 25, 2024
1 parent 9c5cbaf commit c2b3365
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/coinjoin/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ const { Command, Boolean } = require('twisted.protocols.amp');
const SETUP_COMMAND = 'Setup';
const KEYS_COMMAND = 'Keys';
const SIGS_COMMAND = 'Sigs';
const SETUP_RESPONSE_COMMAND = 'SetupResponse';
const KEYS_RESPONSE_COMMAND = 'KeysResponse';
const SETUP_RESPONSE_COMMAND = newFunction();
const SIGS_RESPONSE_COMMAND = 'SigsResponse';

class DaemonNotReady extends Error {}
Expand Down Expand Up @@ -70,7 +69,7 @@ const commands = {
[KEYS_COMMAND]: Keys,
[SIGS_COMMAND]: Sigs,
[SETUP_RESPONSE_COMMAND]: SetupResponse,
[KEYS_RESPONSE_COMMAND]: KeysResponse,
['KeysResponse']: KeysResponse,
[SIGS_RESPONSE_COMMAND]: SigsResponse,
};

Expand All @@ -85,3 +84,7 @@ module.exports = {
commands,
};

function newFunction() {
return 'SetupResponse';
}

0 comments on commit c2b3365

Please sign in to comment.