Function
queryPrefund
(
client: PublicClient,
configPrefund: GenesisConfig['prefund'] = [],
)
Source from the content-addressed store, hash-verified
| 357 | |
| 358 | // Read current on-chain balance for each prefund address and flag drift. |
| 359 | const queryPrefund = async ( |
| 360 | client: PublicClient, |
| 361 | configPrefund: GenesisConfig['prefund'] = [], |
| 362 | ): Promise<GenesisConfig['prefund']> => |
| 363 | Promise.all( |
| 364 | configPrefund.map(async ({ address }) => ({ |
| 365 | address, |
| 366 | balance: await client.getBalance({ address }), |
| 367 | })), |
| 368 | ) |
| 369 | |
| 370 | class ConfigComparator { |
| 371 | hasDiff = false |
Tested by
no test coverage detected