UNPKG

@iexec/iapp

Version:

A CLI to guide you through the process of building an iExec iApp

12 lines 404 B
import { Wallet } from 'ethers'; import { readIAppConfig, writeIAppConfig } from './iAppConfigFile.js'; export async function generateWallet() { const { privateKey, address } = Wallet.createRandom(); const config = await readIAppConfig(); await writeIAppConfig({ ...config, walletPrivateKey: privateKey, }); return address; } //# sourceMappingURL=generateWallet.js.map