mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
list type cast fix
This commit is contained in:
parent
f778a9309f
commit
5ddf3e3a53
1 changed files with 9 additions and 2 deletions
|
@ -69,8 +69,15 @@ class WalletInfo implements IsarId {
|
|||
|
||||
bool get isFavourite => favouriteOrderIndex > -1;
|
||||
|
||||
List<String> get tokenContractAddresses =>
|
||||
otherData[WalletInfoKeys.tokenContractAddresses] as List<String>? ?? [];
|
||||
List<String> get tokenContractAddresses {
|
||||
if (otherData[WalletInfoKeys.tokenContractAddresses] is List) {
|
||||
return List<String>.from(
|
||||
otherData[WalletInfoKeys.tokenContractAddresses] as List,
|
||||
);
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/// Special case for coins such as firo
|
||||
@ignore
|
||||
|
|
Loading…
Reference in a new issue