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
dd667a7d
Commit
dd667a7d
authored
Feb 04, 2020
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wording udappUI
parent
bdd54054
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sendTxCallbacks.js
src/app/ui/sendTxCallbacks.js
+4
-4
No files found.
src/app/ui/sendTxCallbacks.js
View file @
dd667a7d
...
@@ -7,12 +7,12 @@ const typeConversion = remixLib.execution.typeConversion
...
@@ -7,12 +7,12 @@ const typeConversion = remixLib.execution.typeConversion
const
Web3
=
require
(
'web3'
)
const
Web3
=
require
(
'web3'
)
module
.
exports
=
{
module
.
exports
=
{
getCallBacksWithContext
:
(
udapp
,
executionContext
)
=>
{
getCallBacksWithContext
:
(
udapp
UI
,
executionContext
)
=>
{
let
callbacks
=
{}
let
callbacks
=
{}
callbacks
.
confirmationCb
=
confirmationCb
callbacks
.
confirmationCb
=
confirmationCb
callbacks
.
continueCb
=
continueCb
callbacks
.
continueCb
=
continueCb
callbacks
.
promptCb
=
promptCb
callbacks
.
promptCb
=
promptCb
callbacks
.
udapp
=
udapp
callbacks
.
udapp
UI
=
udappUI
callbacks
.
executionContext
=
executionContext
callbacks
.
executionContext
=
executionContext
return
callbacks
return
callbacks
}
}
...
@@ -51,7 +51,7 @@ const confirmationCb = function (network, tx, gasEstimation, continueTxExecution
...
@@ -51,7 +51,7 @@ const confirmationCb = function (network, tx, gasEstimation, continueTxExecution
return
continueTxExecution
(
null
)
return
continueTxExecution
(
null
)
}
}
var
amount
=
Web3
.
utils
.
fromWei
(
typeConversion
.
toInt
(
tx
.
value
),
'ether'
)
var
amount
=
Web3
.
utils
.
fromWei
(
typeConversion
.
toInt
(
tx
.
value
),
'ether'
)
var
content
=
confirmDialog
(
tx
,
amount
,
gasEstimation
,
self
.
udapp
,
var
content
=
confirmDialog
(
tx
,
amount
,
gasEstimation
,
self
.
udapp
UI
,
(
gasPrice
,
cb
)
=>
{
(
gasPrice
,
cb
)
=>
{
let
txFeeText
,
priceStatus
let
txFeeText
,
priceStatus
// TODO: this try catch feels like an anti pattern, can/should be
// TODO: this try catch feels like an anti pattern, can/should be
...
@@ -86,7 +86,7 @@ const confirmationCb = function (network, tx, gasEstimation, continueTxExecution
...
@@ -86,7 +86,7 @@ const confirmationCb = function (network, tx, gasEstimation, continueTxExecution
content
,
content
,
{
label
:
'Confirm'
,
{
label
:
'Confirm'
,
fn
:
()
=>
{
fn
:
()
=>
{
self
.
udapp
.
udapp
.
config
.
setUnpersistedProperty
(
self
.
udapp
UI
.
udapp
.
config
.
setUnpersistedProperty
(
'doNotShowTransactionConfirmationAgain'
,
'doNotShowTransactionConfirmationAgain'
,
content
.
querySelector
(
'input#confirmsetting'
).
checked
content
.
querySelector
(
'input#confirmsetting'
).
checked
)
)
...
...
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