Skip to content

Commit

Permalink
fix(cli): use correct args for executeswap
Browse files Browse the repository at this point in the history
This fixes the argument names passed to the `ExecuteSwap` rpc call
in the corresponding cli command.
  • Loading branch information
sangaman committed Dec 11, 2018
1 parent 3500a50 commit 038c6a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cli/commands/executeswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export const builder = {

export const handler = (argv: Arguments) => {
const request = new ExecuteSwapRequest();
request.setOrderId(argv.maker_order_id);
request.setOrderId(argv.order_id);
request.setPairId(argv.pair_id);
request.setPeerPubKey(argv.maker_peer_pub_key);
request.setPeerPubKey(argv.peer_pub_key);
request.setQuantity(argv.quantity);
loadXudClient(argv).executeSwap(request, callback(argv));
};

0 comments on commit 038c6a9

Please sign in to comment.