mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 02:24:30 +00:00
empty token tx check
This commit is contained in:
parent
09b2c68cd5
commit
1fd7e129e2
1 changed files with 6 additions and 0 deletions
|
@ -296,6 +296,12 @@ class EthTokenWallet extends ChangeNotifier with EthTokenCache {
|
|||
throw response.exception ??
|
||||
Exception("Failed to fetch token transaction data");
|
||||
}
|
||||
|
||||
// no need to continue if no transactions found
|
||||
if (response.value!.isEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
final response2 = await EthereumAPI.getEthTokenTransactionsByTxids(
|
||||
response.value!.map((e) => e.transactionHash).toList(),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue