diff --git a/docs/cdk/get-started/deploy-rollup/create-wallets.md b/docs/cdk/get-started/deploy-rollup/create-wallets.md index cf4109b91..055b959df 100644 --- a/docs/cdk/get-started/deploy-rollup/create-wallets.md +++ b/docs/cdk/get-started/deploy-rollup/create-wallets.md @@ -10,47 +10,47 @@ npm i ## Create wallets -Next, create a `wallets.js` file. +1. Create a `wallets.js` file. -```sh -cd ~/zkevm-contracts -nano wallets.js -``` + ```sh + cd ~/zkevm-contracts + nano wallets.js + ``` -Copy/paste the JavaScript code below. - -```js -const ethers = require("ethers"); - -async function main() { - const arrayNames = [ - "## Deployment Address", - "\\n\\n## Trusted sequencer", - "\\n\\n## Trusted aggregator", - ]; - for (let i = 0; i < arrayNames.length; i++) { - const wallet = ethers.Wallet.createRandom(); - console.log(arrayNames[i]); - console.log(`Address: ${wallet.address}`); - console.log(`PrvKey: ${wallet._signingKey().privateKey}`); - console.log(`mnemonic: "${wallet._mnemonic().phrase}"`); - - const keystoreJson = await wallet.encrypt("password"); - console.log(`keystore: ${keystoreJson}`); - } -} - -main().catch((e) => { - console.error(e); - process.exit(1); -}); -``` +2. Copy/paste the JavaScript code below. + + ```js + const ethers = require("ethers"); + + async function main() { + const arrayNames = [ + "## Deployment Address", + "\\n\\n## Trusted sequencer", + "\\n\\n## Trusted aggregator", + ]; + for (let i = 0; i < arrayNames.length; i++) { + const wallet = ethers.Wallet.createRandom(); + console.log(arrayNames[i]); + console.log(`Address: ${wallet.address}`); + console.log(`PrvKey: ${wallet._signingKey().privateKey}`); + console.log(`mnemonic: "${wallet._mnemonic().phrase}"`); + + const keystoreJson = await wallet.encrypt("password"); + console.log(`keystore: ${keystoreJson}`); + } + } + + main().catch((e) => { + console.error(e); + process.exit(1); + }); + ``` -Generate the wallets using below command: +3. Generate the wallets. -```sh -node wallets.js | tee wallets.txt -``` + ```sh + node wallets.js | tee wallets.txt + ``` ## Prepare environment variables