Skip to content

Commit ec1adb9

Browse files
committed
feat: use height param
1 parent 0b2548f commit ec1adb9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/pages/add_wallet_views/restore_wallet_view/restore_options_view/restore_options_view.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,13 @@ class _UriRestoreOptionState extends ConsumerState<UriRestoreOption> {
12031203
} catch (_) {
12041204
parsed = null;
12051205
}
1206+
1207+
// If the URI contains a height, switch to block height mode and populate.
1208+
if (parsed?.height != null) {
1209+
ref.read(_pIsUsingDate.notifier).state = false;
1210+
widget.blockHeightController.text = parsed!.height.toString();
1211+
}
1212+
12061213
widget.onParsed(parsed);
12071214
}
12081215

0 commit comments

Comments
 (0)