Filters out TRC10 spam transactions and modifies Solana error messages (#1587)

* fix: Tron and solana fixes

* fix: Disable send all for solana wallets

* fix: Add localization and add tostring to get more info on error

* fix: Fix spelling for comment

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
David Adegoke 2024-08-10 00:02:47 +01:00 committed by GitHub
parent b412d45f0e
commit 96baf460f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 42 additions and 5 deletions

View file

@ -349,6 +349,11 @@ abstract class TronWalletBase
continue;
}
// Filter out spam transaactions that involve receiving TRC10 assets transaction, we deal with TRX and TRC20 transactions
if (transactionModel.contracts?.first.type == "TransferAssetContract") {
continue;
}
String? tokenSymbol;
if (transactionModel.contractAddress != null) {
final tokenAddress = TronAddress(transactionModel.contractAddress!);