Skip to content

Commit

Permalink
fix(cli): add missing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kodemon committed Jul 13, 2023
1 parent 6571f3c commit a49246f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/sado-cli/src/Commands/Order/CreateOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class CreateOrder extends ApiCommand {
async execute(): Promise<void> {
try {
const order = await Order.for(JSON.parse(Buffer.from(this.data, "base64").toString("utf-8")));
console.log(await this.client.order.create(order));
console.log(await this.client.order.create(order, 15));
} catch (error) {
console.error(`Failed to create order: ${error.message}`);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/sado-cli/src/Commands/Order/InitOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class InitOrder extends ApiCommand {
print("Order cancelled");
} else {
print("Creating order...");
const { cid, psbt } = await this.client.order.create(order);
const { cid, psbt } = await this.client.order.create(order, 15);
print(`
Order created successfully!
Expand Down

0 comments on commit a49246f

Please sign in to comment.