Skip to content

Commit

Permalink
Amend previous commit
Browse files Browse the repository at this point in the history
Amend the previous commit with minor tweaks
  • Loading branch information
CharlVS committed Dec 16, 2024
1 parent 19b9e94 commit de801c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions packages/komodo_defi_sdk/example/lib/screens/asset_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class _AssetPageState extends State<AssetPage> {
Set<CantCreateNewAddressReason>? _cantCreateNewAddressReasons;

Future<void> _refreshUnavailableReasons() async {
final reasons = await widget.asset.getCantCreateNewAddressReasons();
final reasons = await widget.asset.getCantCreateNewAddressReasons(_sdk);
setState(() => _cantCreateNewAddressReasons = reasons);
}

Expand Down Expand Up @@ -266,18 +266,6 @@ class _AddressesSection extends StatelessWidget {
const Text('Addresses'),
Tooltip(
message: tooltipMessage,
// textStyle: const TextStyle(
// color: Colors.white,
// fontSize: 14,
// ),
// decoration: BoxDecoration(
// color: Theme.of(context).colorScheme.inverseSurface,
// borderRadius: BorderRadius.circular(4),
// ),
// padding: const EdgeInsets.symmetric(
// horizontal: 16,
// vertical: 8,
// ),
preferBelow: true,
child: ElevatedButton.icon(
onPressed: canCreateNewAddress ? onGenerateNewAddress : null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ extension AssetHdWalletAddressesExtension on Asset {
reasons.add(CantCreateNewAddressReason.maxGapLimitReached);
}
}
return reasons;
return reasons.isEmpty ? null : reasons;
}
}

0 comments on commit de801c4

Please sign in to comment.