@@ -212,7 +212,7 @@ const testSyncAccount = async (account: Account) => {
212
212
213
213
( async ( ) => {
214
214
// list of accounts from input file
215
- const inputAccounts : AccountRaw [ ] = [ ] ;
215
+ let inputAccounts : AccountRaw [ ] = [ ] ;
216
216
217
217
if ( inputFile ) {
218
218
if ( ! existsSync ( inputFile ) ) {
@@ -222,7 +222,9 @@ const testSyncAccount = async (account: Account) => {
222
222
) ;
223
223
} else {
224
224
// if there's a input file we parse it
225
- inputAccounts . push ( JSON . parse ( readFileSync ( inputFile , "utf8" ) ) ) ;
225
+ inputAccounts = JSON . parse ( readFileSync ( inputFile , "utf8" ) ) ;
226
+ // console.log({fileRead})
227
+ // inputAccounts.push(JSON.parse(readFileSync(inputFile, "utf8")));
226
228
}
227
229
}
228
230
@@ -247,11 +249,13 @@ const testSyncAccount = async (account: Account) => {
247
249
return true ;
248
250
} ,
249
251
) ;
252
+ console . log ( { inputAccounts, defaultAddresses, migrationAddresses, filteredAddresses} )
250
253
251
254
let syncedAccounts : PromiseSettledResult < AccountRaw > [ ] = [ ] ;
252
255
253
256
// if --inputFile we use the addresses from the input file otherwise from addresses.ts
254
257
if ( inputAccounts . length ) {
258
+ console . log ( { inputAccounts} )
255
259
syncedAccounts = await Promise . allSettled (
256
260
( filteredAddresses as AccountRaw [ ] ) . map ( rawAccount => {
257
261
const account = fromAccountRaw ( rawAccount ) ;
0 commit comments