class ManageWalletPresenter extends BasePresenter<ManageWalletContract.View> implements ManageWalletContract.Presenter {

    @Override
    public void showWalletInfo() {
        if (mWalletEntity != null && isViewAttached()) {

            if(!mWalletEntity.isHD()){//普通钱包
                List<Wallet> walletList = WalletManager.getInstance().getWalletList();
                for (Wallet walletEntity : walletList) {
                    if (mWalletEntity.getUuid().equals(walletEntity.getUuid())) {
                        mWalletEntity = walletEntity;
                        break;
                    }
                }
            }
            /*else{//HD钱包

                //查询HD母钱包信息组装到子钱包
                Wallet rootWallet = WalletManager.getInstance().getWalletInfoByUuid(mWalletEntity.getParentId());
                mWalletEntity.setMnemonic(rootWallet.getMnemonic());
                mWalletEntity.setKey(rootWallet.getKey());
            }*/

            getView().showWalletInfo(mWalletEntity);
        }
    }

}