Skip to content

Commit

Permalink
🐛 Fix hive error with new version
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Feb 5, 2024
1 parent 04cbf9a commit 2ae1a56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/infrastructure/hive/dex_pool.hive.dart
Original file line number Diff line number Diff line change
@@ -45,12 +45,12 @@ class DexPoolHive extends HiveObject {
DexPoolInfosHive? details;

@HiveField(5)
bool isFavorite;
bool? isFavorite;

DexPool toDexPool() {
return DexPool(
lpTokenInUserBalance: lpTokenInUserBalance,
isFavorite: isFavorite,
isFavorite: isFavorite ?? false,
poolAddress: poolAddress,
lpToken: lpToken.toModel(),
pair: pair.toModel(),

0 comments on commit 2ae1a56

Please sign in to comment.