( location: string = "" )
| 184 | } |
| 185 | |
| 186 | export async function loadKeypairsBatch( |
| 187 | location: string = "" |
| 188 | ): Promise<Keypair[]> { |
| 189 | let keypairs: Keypair[] = []; |
| 190 | for (let i = 1; i < 3; i++) { |
| 191 | let file = `${location}${i}.json`; |
| 192 | keypairs.push(await loadKeypair(file)); |
| 193 | } |
| 194 | |
| 195 | return keypairs; |
| 196 | } |
| 197 | |
| 198 | export async function loadKeypair(location: string = ""): Promise<Keypair> { |
| 199 | let load = await fs.readFile(location, { |
nothing calls this directly
no test coverage detected