Skip to content

Commit cb0dc56

Browse files
authored
Merge pull request #358 from KomodoPlatform/kdf/fix/enable_hd
2 parents 4338fca + 39a3a46 commit cb0dc56

File tree

1 file changed

+6
-6
lines changed
  • src/pages/komodo-defi-framework/setup/configure-mm2-json

1 file changed

+6
-6
lines changed

src/pages/komodo-defi-framework/setup/configure-mm2-json/index.mdx

+6-6
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ When running the Komodo DeFi API via commandline with the `mm2` binary, some bas
7878

7979
#### Example for HD Wallets:
8080

81-
If you are using HD wallets, you will need to add the `hd_account_id` value to your `MM2.json` file. This value will be used in the derivation path for all coins, and will take the place of the `COIN_ID` value in the following path: `m/44'/COIN_ID'/<hd_account_id>'/CHAIN/ADDRESS_ID`.
81+
If you are using HD wallets, you will need to set `enable_hd` to `true` in to your `MM2.json` file.
8282

8383
<Note>
84-
Using the same seed phrase with / without setting the `hd_account_id` value
84+
Using the same seed phrase with / without setting `enable_hd` to `true`
8585
will result in different addresses being generated. For example, when using
86-
the seed phrase `february soldier message acid member jump shadow walk novel impose puppy tornado`: - If the `hd_account_id` value is set to `0` in
86+
the seed phrase `february soldier message acid member jump shadow walk novel impose puppy tornado`: - If `enable_hd` is `true` in your
8787
MM2.json, the first address in the wallet returns the address
88-
`0x26cE5D1cD4CC673a1b0b980371C7c862B9503452` for ETH - If the `hd_account_id`
89-
value is not set, the wallet will return the address
88+
`0x26cE5D1cD4CC673a1b0b980371C7c862B9503452` for ETH - If the `enable_hd`
89+
is `false` (or not set), the wallet will return the address
9090
`0x8c40a6E127c7a13e26ce95deA88354C3fb134580` for ETH
9191
</Note>
9292

@@ -98,7 +98,7 @@ If you are using HD wallets, you will need to add the `hd_account_id` value to y
9898
"passphrase": "ENTER_UNIQUE_SEED_PHRASE_DONT_USE_THIS_CHANGE_IT_OR_FUNDS_NOT_SAFU",
9999
"allow_weak_password": false,
100100
"dbdir": "/path/to/DB/folder",
101-
"hd_account_id": 0
101+
"enable_hd": true
102102
}
103103
```
104104

0 commit comments

Comments
 (0)