aboutsummaryrefslogtreecommitdiff
path: root/wizard
diff options
context:
space:
mode:
Diffstat (limited to 'wizard')
-rw-r--r--wizard/WizardCreateDevice1.qml3
-rw-r--r--wizard/WizardRestoreWallet1.qml3
2 files changed, 4 insertions, 2 deletions
diff --git a/wizard/WizardCreateDevice1.qml b/wizard/WizardCreateDevice1.qml
index 9a2191bc..21fc5a9a 100644
--- a/wizard/WizardCreateDevice1.qml
+++ b/wizard/WizardCreateDevice1.qml
@@ -33,6 +33,7 @@ import QtQuick.Controls 2.0
import moneroComponents.Wallet 1.0
import "../js/Wizard.js" as Wizard
+import "../js/Utils.js" as Utils
import "../components"
import "../components" as MoneroComponents
@@ -195,7 +196,7 @@ Rectangle {
if(restoreHeight.text){
// Parse date string or restore height as integer
if(restoreHeight.text.indexOf('-') === 4 && restoreHeight.text.length === 10){
- _restoreHeight = Wizard.getApproximateBlockchainHeight(restoreHeight.text);
+ _restoreHeight = Wizard.getApproximateBlockchainHeight(restoreHeight.text, Utils.netTypeToString());
} else {
_restoreHeight = parseInt(restoreHeight.text)
}
diff --git a/wizard/WizardRestoreWallet1.qml b/wizard/WizardRestoreWallet1.qml
index a41b6a16..c626742f 100644
--- a/wizard/WizardRestoreWallet1.qml
+++ b/wizard/WizardRestoreWallet1.qml
@@ -31,6 +31,7 @@ import QtQuick.Layouts 1.2
import QtQuick.Controls 2.0
import "../js/Wizard.js" as Wizard
+import "../js/Utils.js" as Utils
import "../components" as MoneroComponents
Rectangle {
@@ -292,7 +293,7 @@ Rectangle {
if(restoreHeight.text){
// Parse date string or restore height as integer
if(restoreHeight.text.indexOf('-') === 4 && restoreHeight.text.length === 10){
- _restoreHeight = Wizard.getApproximateBlockchainHeight(restoreHeight.text);
+ _restoreHeight = Wizard.getApproximateBlockchainHeight(restoreHeight.text, Utils.netTypeToString());
} else {
_restoreHeight = parseInt(restoreHeight.text)
}