Skip to content

Commit 0fab782

Browse files
committed
Upgrade coin type
1 parent 9b51fcd commit 0fab782

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ console.log(`Wallet address: ${wallet.getAddress()}`);
6161

6262
**IMPORTANT NOTES:**
6363
- Transaction signature using Ledger only works with legacy amino (wich will be deprecated at some point)
64-
- Derivation path using the Cosmos Ledger application cannot be set to the default Lum Path for now `m/44'/837'/0'/*/*` and must remain on the Cosmos path `m/44'/'118/0'/*/*`
64+
- Derivation path using the Cosmos Ledger application cannot be set to the default Lum Path for now `m/44'/880'/0'/*/*` and must remain on the Cosmos path `m/44'/'118/0'/*/*`
6565

6666
#### Ledger
6767

docs/lib/modules/lumconstants.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
### HDPath
3232

33-
**HDPath**: ``"m/44'/837'/0'/"``
33+
**HDPath**: ``"m/44'/880'/0'/"``
3434

3535
Lum Network HDPath
3636

src/constants/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const LumBech32PrefixConsPub = 'lumvalconspub';
5050
* @see https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki
5151
* @see https://github.com/satoshilabs/slips/blob/master/slip-0044.md
5252
*/
53-
export const HDPath = "m/44'/837'/0'/";
53+
export const HDPath = "m/44'/880'/0'/";
5454

5555
/**
5656
* Get a Lum Network HDPath for a specified account index

tests/ledger.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('Ledger', () => {
8686
// Manual testing using ledger device
8787
// Ledger device must be unlocked and Lum app opened prior to running those tests
8888
const transport = await TransportNodeHid.create();
89-
const w = await LumWalletFactory.fromLedgerTransport(transport, `m/44'/837'/0'/0/0`, 'lum');
89+
const w = await LumWalletFactory.fromLedgerTransport(transport, `m/44'/880'/0'/0/0`, 'lum');
9090
expect(w).toBeTruthy();
9191

9292
await requestCoinsIfNeeded(clt, w, 1000);
@@ -125,7 +125,7 @@ describe('Ledger', () => {
125125
// Ledger device must be unlocked and Lum app opened prior to running those tests
126126
const message = 'Lum network is an awesome decentralized protocol';
127127
const transport = await TransportNodeHid.create();
128-
const w1 = await LumWalletFactory.fromLedgerTransport(transport, `m/44'/837'/0'/0/0`, 'lum');
128+
const w1 = await LumWalletFactory.fromLedgerTransport(transport, `m/44'/880'/0'/0/0`, 'lum');
129129
const w2 = await LumWalletFactory.fromMnemonic(LumUtils.generateMnemonic());
130130
const signed = await w1.signMessage(message);
131131
const v1 = await LumUtils.verifySignMsg(signed);

0 commit comments

Comments
 (0)