mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 02:54:30 +00:00
xmr/wow address check null error fix
This commit is contained in:
parent
fb937ebddf
commit
ec52612f61
1 changed files with 9 additions and 7 deletions
|
@ -335,8 +335,9 @@ mixin CwBasedInterface<T extends CryptonoteCurrency> on CryptonoteWallet<T>
|
||||||
Future<void> checkReceivingAddressForTransactions() async {
|
Future<void> checkReceivingAddressForTransactions() async {
|
||||||
try {
|
try {
|
||||||
int highestIndex = -1;
|
int highestIndex = -1;
|
||||||
for (var element
|
final entries = cwWalletBase?.transactionHistory?.transactions?.entries;
|
||||||
in cwWalletBase!.transactionHistory!.transactions!.entries) {
|
if (entries != null) {
|
||||||
|
for (final element in entries) {
|
||||||
if (element.value.direction == TransactionDirection.incoming) {
|
if (element.value.direction == TransactionDirection.incoming) {
|
||||||
int curAddressIndex =
|
int curAddressIndex =
|
||||||
element.value.additionalInfo!['addressIndex'] as int;
|
element.value.additionalInfo!['addressIndex'] as int;
|
||||||
|
@ -345,6 +346,7 @@ mixin CwBasedInterface<T extends CryptonoteCurrency> on CryptonoteWallet<T>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Check the new receiving index
|
// Check the new receiving index
|
||||||
final currentReceiving = await getCurrentReceivingAddress();
|
final currentReceiving = await getCurrentReceivingAddress();
|
||||||
|
|
Loading…
Reference in a new issue