Skip to content

Commit

Permalink
rm check bc redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
at2005 committed Oct 1, 2024
1 parent 9602fba commit c2b9af5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/lib/buy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,7 @@ async function buyOrderAction(options: SfBuyOptions) {
return logAndQuit(`Invalid duration: ${options.duration}`);
}

// parse colocation contract id and assign it if it exists
const colocateWithContractIds = options.colo ? options.colo : [];
if (colocateWithContractIds) {
// check if contract actually exists
for (const contractId of colocateWithContractIds) {
const contract = await getContract(contractId);
if (!contract || contract.status !== "active") {
return logAndQuit(`Contract ${contractId} not found`);
}
}
}

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

0 comments on commit c2b9af5

Please sign in to comment.