Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaque committed Oct 15, 2024
1 parent 0f3a8b3 commit e6d9bd1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/buy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface SfBuyOptions {
start?: string;
yes?: boolean;
quote?: boolean;
colocate_with?: Array<string>;
colocate?: Array<string>;
}

export function registerBuy(program: Command) {
Expand Down Expand Up @@ -83,9 +83,7 @@ async function buyOrderAction(options: SfBuyOptions) {
return logAndQuit(`Invalid duration: ${options.duration}`);
}

const colocateWithContractIds = options.colocate_with
? options.colocate_with
: [];
const colocateWithContractIds = options.colocate ? options.colocate : [];

// default to 1 node if not specified
const accelerators = options.accelerators ? Number(options.accelerators) : 1;
Expand Down

0 comments on commit e6d9bd1

Please sign in to comment.