Skip to content

Commit 2a95a65

Browse files
committed
ci: Add comments for sleep
1 parent bda6f42 commit 2a95a65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cli/src/index.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,11 @@ yargs(hideBin(process.argv))
472472
argv["binary"]
473473
);
474474

475+
// we sleep here to ensure the program has enough time to be deployed
476+
// and we can fetch the version from the program itself
477+
await new Promise((resolve) => setTimeout(resolve, 2000));
475478
// reinit the ntt object to get the new version
476479
// TODO: is there an easier way to do this?
477-
await new Promise((resolve) => setTimeout(resolve, 2000));
478480
const { ntt: upgraded } = await nttFromManager(ch, chainConfig.manager);
479481

480482
chainConfig.version = getVersion(chain, upgraded)
@@ -1343,6 +1345,7 @@ async function deploySolana<N extends Network, C extends SolanaChains>(
13431345

13441346
let binary: string;
13451347

1348+
// TODO: maybe this could be a flag?
13461349
const skipDeploy = false;
13471350

13481351
if (!skipDeploy) {
@@ -1829,7 +1832,6 @@ async function nttFromManager<N extends Network, C extends Chain>(
18291832
transceiver: {},
18301833
}
18311834
});
1832-
console.log("NTTFROMMANAGER -> onlyMan:", getVersion(ch.chain, onlyManager));
18331835
const diff = await onlyManager.verifyAddresses();
18341836

18351837
const addresses: Partial<Ntt.Contracts> = { manager: nativeManagerAddress, ...diff };

0 commit comments

Comments
 (0)