fix: code review

This commit is contained in:
RichΛrd 2021-08-02 08:08:29 -04:00 committed by Iuri Matias
parent d34dafd525
commit 46e3779020
1 changed files with 3 additions and 3 deletions

View File

@ -56,9 +56,9 @@ QtObject:
discard gasLimit.parseInt(gasLimitInt)
# The following two check prevents app crash, cause we're trying to promote
# gweiValueInt and gasLimitInt to unsigned 256 int, and these two numbers
# must be positive numbers, because of overflow.
# The following check prevents app crash, cause we're trying to promote
# gasLimitInt to unsigned 256 int, and this number must be a positive number,
# because of overflow.
var gwei = gweiValue.parseFloat()
if (gwei < 0):
gwei = 0