KomodoPlatform / komodo-defi-framework

This is the official Komodo DeFi Framework repository
https://komodoplatform.com/en/docs/komodo-defi-framework/
104 stars 95 forks source link

`get_enabled_coins` returns error in HD mode #1727

Open smk762 opened 1 year ago

smk762 commented 1 year ago

when logged in with trezor at https://atomicdex-play.lordofthechains.com/ the method

{
    "userpass":"testpsw",
    "method":"get_enabled_coins"
}

returns

{
  "error": "rpc:152] rpc:211] dispatcher_legacy:141] lp_coins:3167] lp_coins:3170] utxo_common:2276] 'my_address' is deprecated for HD wallets"
}

Is there an equivalent method planned?

shamardy commented 1 year ago

Is there an equivalent method planned?

I guess gui_storage::get_enabled_account and gui_storage::get_account_coins are the equivalent methods.

shamardy commented 1 year ago

I guess gui_storage::get_enabled_account and gui_storage::get_account_coins are the equivalent methods.

Sorry, my input here was wrong as I didn't know what gui storage was at the time of responding. There is a v2 method of get_enabled_coins with the same name but you need to add "mmrpc": "2.0", to the request. This returns the enabled coins without the addresses to avoid using my_address that causes problems (since for HD wallets there are multiple addresses).