Skip to content

Commit bfa71d0

Browse files
committed
faucet: revert changes
1 parent 6187f4b commit bfa71d0

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

.pnp.cjs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/faucet/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"@cosmjs/stargate": "workspace:^",
4747
"@cosmjs/utils": "workspace:^",
4848
"@koa/cors": "^5.0",
49-
"@scure/bip39": "^1.6.0",
5049
"koa": "^2.16.1",
5150
"koa-bodyparser": "^4.3"
5251
},

packages/faucet/src/actions/generate.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { generateMnemonic } from "@scure/bip39";
2-
import { wordlist } from "@scure/bip39/wordlists/english";
1+
import { Bip39, Random } from "@cosmjs/crypto";
32

43
import * as constants from "../constants";
54
import { makePathBuilder } from "../pathbuilder";
@@ -12,7 +11,7 @@ export async function generate(args: readonly string[]): Promise<void> {
1211
);
1312
}
1413

15-
const mnemonic = generateMnemonic(wordlist);
14+
const mnemonic = Bip39.encode(Random.getBytes(16)).toString();
1615
console.info(`FAUCET_MNEMONIC="${mnemonic}"`);
1716

1817
const pathBuilder = makePathBuilder(constants.pathPattern);

yarn.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ __metadata:
427427
"@cosmjs/utils": "workspace:^"
428428
"@istanbuljs/nyc-config-typescript": "npm:^1.0.1"
429429
"@koa/cors": "npm:^5.0"
430-
"@scure/bip39": "npm:^1.6.0"
431430
"@types/jasmine": "npm:^4"
432431
"@types/koa": "npm:^2.15.0"
433432
"@types/koa-bodyparser": "npm:^4.3"

0 commit comments

Comments
 (0)