From dc699c6551c6e647c593227460042398fcafdfe8 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Fri, 26 Apr 2024 17:51:51 +0200 Subject: [PATCH] additionalInfo backwards compat --- lib/wallets/wallet/impl/monero_wallet.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wallets/wallet/impl/monero_wallet.dart b/lib/wallets/wallet/impl/monero_wallet.dart index e0d70db36..5f681c774 100644 --- a/lib/wallets/wallet/impl/monero_wallet.dart +++ b/lib/wallets/wallet/impl/monero_wallet.dart @@ -218,8 +218,8 @@ class MoneroWallet extends CryptonoteWallet with CwBasedInterface { final addressString = (CwBasedInterface.cwWalletBase as MoneroWalletBase?) ?.getTransactionAddress( - addressInfo!['accountIndex'] as int, - addressInfo['addressIndex'] as int, + addressInfo?['accountIndex'] as int? ?? 0, + addressInfo?['addressIndex'] as int? ?? 0, ); if (addressString != null) {