Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
c34cd557
Commit
c34cd557
authored
Aug 06, 2021
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve comparison
parent
ad76272b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
confirmDialog.js
apps/remix-ide/src/app/ui/confirmDialog.js
+1
-1
No files found.
apps/remix-ide/src/app/ui/confirmDialog.js
View file @
c34cd557
...
@@ -29,7 +29,7 @@ function confirmDialog (tx, network, amount, gasEstimation, newGasPriceCb, initi
...
@@ -29,7 +29,7 @@ function confirmDialog (tx, network, amount, gasEstimation, newGasPriceCb, initi
var
maxFee
=
el
.
querySelector
(
'#maxfee'
).
value
var
maxFee
=
el
.
querySelector
(
'#maxfee'
).
value
var
confirmBtn
=
document
.
querySelector
(
'#modal-footer-ok'
)
var
confirmBtn
=
document
.
querySelector
(
'#modal-footer-ok'
)
var
maxPriorityFee
=
el
.
querySelector
(
'#maxpriorityfee'
).
value
var
maxPriorityFee
=
el
.
querySelector
(
'#maxpriorityfee'
).
value
if
(
Web3
.
utils
.
fromWei
(
Web3
.
utils
.
toBN
(
parseInt
(
network
.
lastBlock
.
baseFeePerGas
,
16
)),
'Gwei'
)
>
parseInt
(
maxFee
))
{
if
(
parseInt
(
network
.
lastBlock
.
baseFeePerGas
,
16
)
>
Web3
.
utils
.
toWei
(
maxFee
,
'Gwei'
))
{
el
.
querySelector
(
'#txfee'
).
innerHTML
=
'Transaction is invalid. Max fee should not be less than Base fee'
el
.
querySelector
(
'#txfee'
).
innerHTML
=
'Transaction is invalid. Max fee should not be less than Base fee'
el
.
gasPriceStatus
=
false
el
.
gasPriceStatus
=
false
confirmBtn
.
hidden
=
true
confirmBtn
.
hidden
=
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment