File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ pub struct TendermintCoinImpl {
351351 client : TendermintRpcClient ,
352352 pub ( crate ) chain_registry_name : Option < String > ,
353353 pub ( crate ) ctx : MmWeak ,
354- is_keplr_from_ledger : bool ,
354+ pub ( crate ) is_keplr_from_ledger : bool ,
355355}
356356
357357#[ derive( Clone ) ]
@@ -2121,6 +2121,13 @@ pub async fn get_ibc_chain_list() -> IBCChainRegistriesResult {
21212121impl MmCoin for TendermintCoin {
21222122 fn is_asset_chain ( & self ) -> bool { false }
21232123
2124+ fn wallet_only ( & self , ctx : & MmArc ) -> bool {
2125+ let coin_conf = crate :: coin_conf ( ctx, self . ticker ( ) ) ;
2126+ let wallet_only_conf = coin_conf[ "wallet_only" ] . as_bool ( ) . unwrap_or ( false ) ;
2127+
2128+ wallet_only_conf || self . is_keplr_from_ledger
2129+ }
2130+
21242131 fn spawner ( & self ) -> CoinFutSpawner { CoinFutSpawner :: new ( & self . abortable_system ) }
21252132
21262133 fn withdraw ( & self , req : WithdrawRequest ) -> WithdrawFut {
Original file line number Diff line number Diff line change @@ -475,6 +475,13 @@ impl MarketCoinOps for TendermintToken {
475475impl MmCoin for TendermintToken {
476476 fn is_asset_chain ( & self ) -> bool { false }
477477
478+ fn wallet_only ( & self , ctx : & MmArc ) -> bool {
479+ let coin_conf = crate :: coin_conf ( ctx, self . ticker ( ) ) ;
480+ let wallet_only_conf = coin_conf[ "wallet_only" ] . as_bool ( ) . unwrap_or ( false ) ;
481+
482+ wallet_only_conf || self . platform_coin . is_keplr_from_ledger
483+ }
484+
478485 fn spawner ( & self ) -> CoinFutSpawner { CoinFutSpawner :: new ( & self . abortable_system ) }
479486
480487 fn withdraw ( & self , req : WithdrawRequest ) -> WithdrawFut {
You can’t perform that action at this time.
0 commit comments