fix haven transaction info (#373)

* fix haven transaction info

* fix format
This commit is contained in:
Serhii 2022-06-13 12:32:15 +03:00 committed by GitHub
parent b58b0002b0
commit e6fe4676ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -297,9 +297,9 @@ class CWHaven extends Haven {
}
CryptoCurrency assetOfTransaction(TransactionInfo tx) {
final tx = transaction as HavenTransactionInfo;
final asset = CryptoCurrency.fromString(tx.assetType);
return asset;
final transaction = tx as HavenTransactionInfo;
final asset = CryptoCurrency.fromString(transaction.assetType);
return asset;
}
List<AssetRate> getAssetRate()