fix(wallet):transaction approval not shown in release

This commit is contained in:
Pavneet-Sing
2022-05-31 13:55:52 +05:30
parent 43d559ac72
commit 949ee151ab
2 changed files with 4 additions and 3 deletions
@@ -1017,7 +1017,7 @@ public abstract class BraveActivity<C extends ChromeActivityComponent> extends C
public void openBraveWalletSettings() {
SettingsLauncher settingsLauncher = new SettingsLauncherImpl();
settingsLauncher.launchSettingsActivity(this, BraveWalletPreferences.class);
settingsLauncher.launchSettingsActivity(this, BraveWalletPreferences.class);
}
public void openBraveWallet(boolean fromDapp) {
@@ -101,7 +101,8 @@ public class CryptoModel {
}
public void refreshTransactions() {
mPendingTxHelper.fetchTransactions(null);
mKeyringService.getKeyringInfo(BraveWalletConstants.DEFAULT_KEYRING_ID,
keyringInfo -> { mPendingTxHelper.setAccountInfos(keyringInfo.accountInfos); });
}
public LiveData<TransactionInfo> getSelectedPendingRequest() {
@@ -139,7 +140,7 @@ public class CryptoModel {
@Override
public String getChainId() {
if (mNetworkModel.mChainId == null) {
if (mNetworkModel.mChainId.getValue() == null) {
return BraveWalletConstants.MAINNET_CHAIN_ID;
}
return mNetworkModel.mChainId.getValue();