mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 23:05:17 +00:00
fix: code review
This commit is contained in:
parent
d34dafd525
commit
46e3779020
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user