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
11913d31
Commit
11913d31
authored
Jan 16, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert hex to decimal ether unit value
parent
94e01f8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
txRunner.js
src/app/execution/txRunner.js
+3
-1
No files found.
src/app/execution/txRunner.js
View file @
11913d31
...
@@ -6,6 +6,7 @@ var BN = ethJSUtil.BN
...
@@ -6,6 +6,7 @@ var BN = ethJSUtil.BN
var
executionContext
=
require
(
'../../execution-context'
)
var
executionContext
=
require
(
'../../execution-context'
)
var
modalDialog
=
require
(
'../ui/modaldialog'
)
var
modalDialog
=
require
(
'../ui/modaldialog'
)
var
yo
=
require
(
'yo-yo'
)
var
yo
=
require
(
'yo-yo'
)
var
typeConversion
=
require
(
'../../lib/typeConversion'
)
var
csjs
=
require
(
'csjs-inject'
)
var
csjs
=
require
(
'csjs-inject'
)
var
remixLib
=
require
(
'remix-lib'
)
var
remixLib
=
require
(
'remix-lib'
)
var
styleGuide
=
remixLib
.
ui
.
styleGuide
var
styleGuide
=
remixLib
.
ui
.
styleGuide
...
@@ -215,6 +216,7 @@ function run (self, tx, stamp, callback) {
...
@@ -215,6 +216,7 @@ function run (self, tx, stamp, callback) {
}
}
function
confirmDialog
(
tx
,
gasEstimation
,
self
)
{
function
confirmDialog
(
tx
,
gasEstimation
,
self
)
{
var
amount
=
executionContext
.
web3
().
fromWei
(
typeConversion
.
toInt
(
tx
.
value
),
'ether'
)
var
input
=
yo
`<input id='confirmsetting' type="checkbox">`
var
input
=
yo
`<input id='confirmsetting' type="checkbox">`
return
yo
`
return
yo
`
<div>
<div>
...
@@ -222,7 +224,7 @@ function confirmDialog (tx, gasEstimation, self) {
...
@@ -222,7 +224,7 @@ function confirmDialog (tx, gasEstimation, self) {
<div class=
${
css
.
txInfoBox
}
>
<div class=
${
css
.
txInfoBox
}
>
<div>From:
${
tx
.
from
}
</div>
<div>From:
${
tx
.
from
}
</div>
<div>To:
${
tx
.
to
?
tx
.
to
:
'(Contract Creation)'
}
</div>
<div>To:
${
tx
.
to
?
tx
.
to
:
'(Contract Creation)'
}
</div>
<div>Amount:
${
tx
.
value
}
</div>
<div>Amount:
${
amount
}
Ether
</div>
<div>Gas estimation:
${
gasEstimation
}
</div>
<div>Gas estimation:
${
gasEstimation
}
</div>
<div>Gas limit:
${
tx
.
gas
}
</div>
<div>Gas limit:
${
tx
.
gas
}
</div>
<div>Data:</div>
<div>Data:</div>
...
...
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