mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-19 05:58:50 +02:00
Cw 498 improve wallet accounts (#1152)
* CW-498 Call updateTransactions on account change * CW-498 Code Cleanup * CW-498 Add Wallet Address to trade to match transactions to trades * CW-498 Fix containsAddress to include only addresses of account * Handle nullability for fromWalletAddress --------- Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
This commit is contained in:
co-authored by
OmarHatem
parent
5bd382f186
commit
e5d99313eb
@@ -36,16 +36,13 @@ class BlockchainHeightState extends State<BlockchainHeightWidget> {
|
||||
restoreHeightController.addListener(() {
|
||||
if (restoreHeightController.text.isNotEmpty) {
|
||||
widget.onHeightOrDateEntered?.call(true);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
widget.onHeightOrDateEntered?.call(false);
|
||||
dateController.text = '';
|
||||
}
|
||||
try {
|
||||
_changeHeight(restoreHeightController.text != null &&
|
||||
restoreHeightController.text.isNotEmpty
|
||||
? int.parse(restoreHeightController.text)
|
||||
: 0);
|
||||
_changeHeight(
|
||||
restoreHeightController.text.isNotEmpty ? int.parse(restoreHeightController.text) : 0);
|
||||
} catch (_) {
|
||||
_changeHeight(0);
|
||||
}
|
||||
@@ -117,7 +114,7 @@ class BlockchainHeightState extends State<BlockchainHeightWidget> {
|
||||
);
|
||||
}
|
||||
|
||||
Future _selectDate(BuildContext context) async {
|
||||
Future<void> _selectDate(BuildContext context) async {
|
||||
final now = DateTime.now();
|
||||
final date = await getDate(
|
||||
context: context,
|
||||
@@ -126,7 +123,7 @@ class BlockchainHeightState extends State<BlockchainHeightWidget> {
|
||||
lastDate: now);
|
||||
|
||||
if (date != null) {
|
||||
final height = monero!.getHeigthByDate(date: date);
|
||||
final height = monero!.getHeightByDate(date: date);
|
||||
setState(() {
|
||||
dateController.text = DateFormat('yyyy-MM-dd').format(date);
|
||||
restoreHeightController.text = '$height';
|
||||
|
||||
Reference in New Issue
Block a user