We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6df2375 commit 17d088cCopy full SHA for 17d088c
packages/ledger-amino/src/demo/web.ts
@@ -1,5 +1,5 @@
1
-import { AccountData, makeCosmoshubPath, StdSignDoc } from "@cosmjs/amino";
2
-import { pathToString, stringToPath } from "@cosmjs/crypto";
+import { AccountData, StdSignDoc } from "@cosmjs/amino";
+import { pathToString, stringToPath, HdPath } from "@cosmjs/crypto";
3
import { toBase64 } from "@cosmjs/encoding";
4
import { Uint53 } from "@cosmjs/math";
5
import { assert } from "@cosmjs/utils";
@@ -26,8 +26,15 @@ function getTextAreaElement(id: string): HTMLTextAreaElement {
26
return e;
27
}
28
29
-const accountNumbers = [0, 1, 2, 10];
30
-const paths = accountNumbers.map(makeCosmoshubPath);
+const paths: HdPath[] = [
+ stringToPath("m/44'/118'/0'/0/0"),
31
+ stringToPath("m/44'/118'/1'/0/0"),
32
+ stringToPath("m/44'/118'/2'/0/0"),
33
+ stringToPath("m/44'/118'/3'/0/0"),
34
+ stringToPath("m/44'/118'/4'/0/0"),
35
+ stringToPath("m/44'/118'/5'/0/0"),
36
+ stringToPath("m/44'/118'/6'/0/0"),
37
+];
38
39
let accounts: readonly AccountData[] = [];
40
0 commit comments