From e6d9bd1d59d7a174db5a4a64c089a443258d2c4f Mon Sep 17 00:00:00 2001 From: flaque Date: Tue, 15 Oct 2024 11:36:49 -0500 Subject: [PATCH] fix types --- src/lib/buy.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/buy.ts b/src/lib/buy.ts index ccd789b..1235822 100644 --- a/src/lib/buy.ts +++ b/src/lib/buy.ts @@ -41,7 +41,7 @@ interface SfBuyOptions { start?: string; yes?: boolean; quote?: boolean; - colocate_with?: Array; + colocate?: Array; } export function registerBuy(program: Command) { @@ -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;