File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -472,9 +472,11 @@ yargs(hideBin(process.argv))
472
472
argv [ "binary" ]
473
473
) ;
474
474
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 ) ) ;
475
478
// reinit the ntt object to get the new version
476
479
// TODO: is there an easier way to do this?
477
- await new Promise ( ( resolve ) => setTimeout ( resolve , 2000 ) ) ;
478
480
const { ntt : upgraded } = await nttFromManager ( ch , chainConfig . manager ) ;
479
481
480
482
chainConfig . version = getVersion ( chain , upgraded )
@@ -1343,6 +1345,7 @@ async function deploySolana<N extends Network, C extends SolanaChains>(
1343
1345
1344
1346
let binary : string ;
1345
1347
1348
+ // TODO: maybe this could be a flag?
1346
1349
const skipDeploy = false ;
1347
1350
1348
1351
if ( ! skipDeploy ) {
@@ -1829,7 +1832,6 @@ async function nttFromManager<N extends Network, C extends Chain>(
1829
1832
transceiver : { } ,
1830
1833
}
1831
1834
} ) ;
1832
- console . log ( "NTTFROMMANAGER -> onlyMan:" , getVersion ( ch . chain , onlyManager ) ) ;
1833
1835
const diff = await onlyManager . verifyAddresses ( ) ;
1834
1836
1835
1837
const addresses : Partial < Ntt . Contracts > = { manager : nativeManagerAddress , ...diff } ;
You can’t perform that action at this time.
0 commit comments