Skip to content

Commit cb06fb3

Browse files
committed
fix: add missing compute peers as a last step
1 parent 4a88a66 commit cb06fb3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/cli/package/src/lib/chain/offer/updateOffers.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ export async function updateOffers(flags: OffersArgs) {
121121
return;
122122
}
123123

124-
for (const { addMissingComputePeers } of offersToAddCPsTo) {
125-
await addMissingComputePeers.execute();
126-
}
127-
128124
if (firstUpdateOffersTx !== undefined) {
129125
await signBatch({
130126
title: `Updating offers:\n\n${populatedOffersTxs
@@ -137,6 +133,10 @@ export async function updateOffers(flags: OffersArgs) {
137133
});
138134
}
139135

136+
for (const { addMissingComputePeers } of offersToAddCPsTo) {
137+
await addMissingComputePeers.execute();
138+
}
139+
140140
const peersToDeploy = populatedOffersTxs.flatMap(({ txs }) => {
141141
return txs.flatMap(({ peersToDeploy }) => {
142142
return peersToDeploy ?? [];
@@ -1073,7 +1073,7 @@ function printOffersToUpdateInfo(
10731073
return [
10741074
`Offer ${color.green(offerName)} with id ${color.yellow(
10751075
offerId,
1076-
)}:\n\n${[addMissingComputePeersMessage, allTxsMessage].filter(Boolean).join("\n")}\n`,
1076+
)}:\n\n${[allTxsMessage, addMissingComputePeersMessage].filter(Boolean).join("\n")}\n`,
10771077
];
10781078
},
10791079
)

0 commit comments

Comments
 (0)