Commit bf5db39f authored by tungpham's avatar tungpham :speech_balloon:
Browse files

Improve user-experience

parent 9df41985
No related merge requests found
Showing with 10 additions and 6 deletions
+10 -6
config generator:
- change addrNum - the number of address to be generated
# Command:
`npm run gen <array-size>`
run:
- node generate.js
# An xample:
`npm run gen 1000`
var ethers = require('ethers');
var crypto = require('crypto');
var addrNum = 500;
// take the third argument
var addrNum = process.argv.slice(2);
var s = "";
for (let i = 0; i < addrNum; i++) {
......
......@@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"gen": "node generate.js"
},
"repository": {
"type": "git",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment