From 9e53c2359645e450d6ffba3747859e35d507fe21 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 27 Jul 2021 10:59:28 +0200 Subject: [PATCH] fix(@desktop/wallet): Do not allow decimal number for gas limit fixes #3048 --- ui/shared/GasSelector.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/shared/GasSelector.qml b/ui/shared/GasSelector.qml index b64ecb4735..2c80aa1969 100644 --- a/ui/shared/GasSelector.qml +++ b/ui/shared/GasSelector.qml @@ -179,6 +179,9 @@ Item { anchors.right: inputGasPrice.left anchors.rightMargin: Style.current.padding placeholderText: "21000" + validator: IntValidator{ + bottom: 1 + } validationErrorAlignment: TextEdit.AlignRight validationErrorTopMargin: 8 onTextChanged: {