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
111800b4
Commit
111800b4
authored
May 02, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo fix usage of api
parent
cf087461
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app.js
src/app.js
+1
-1
universal-dapp.js
src/universal-dapp.js
+2
-2
No files found.
src/app.js
View file @
111800b4
...
...
@@ -283,7 +283,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
registry
.
put
({
api
:
udapp
,
name
:
'udapp'
})
udapp
.
event
.
register
(
'transactionBroadcasted'
,
(
txhash
,
networkName
)
=>
{
var
txLink
=
executionContext
.
txDetailsLink
(
networkName
,
txhash
)
if
(
txLink
)
registry
.
get
(
'logCallback'
).
api
.
logCallback
(
yo
`<a href="
${
txLink
}
" target="_blank">
${
txLink
}
</a>`
)
if
(
txLink
)
registry
.
get
(
'logCallback'
).
api
(
yo
`<a href="
${
txLink
}
" target="_blank">
${
txLink
}
</a>`
)
})
const
udappUI
=
new
UniversalDAppUI
(
udapp
,
registry
)
...
...
src/universal-dapp.js
View file @
111800b4
...
...
@@ -68,7 +68,7 @@ module.exports = class UniversalDApp extends UdappApi {
executionContext
.
detectNetwork
(
cb
)
},
personalMode
:
()
=>
{
return
this
.
config
.
get
(
'settings/personal-mode'
)
return
this
.
_deps
.
config
.
get
(
'settings/personal-mode'
)
}
})
this
.
txRunner
.
event
.
register
(
'transactionBroadcasted'
,
(
txhash
)
=>
{
...
...
@@ -94,7 +94,7 @@ module.exports = class UniversalDApp extends UdappApi {
newAccount
(
password
,
passwordPromptCb
,
cb
)
{
if
(
!
executionContext
.
isVM
())
{
if
(
!
this
.
config
.
get
(
'settings/personal-mode'
))
{
if
(
!
this
.
_deps
.
config
.
get
(
'settings/personal-mode'
))
{
return
cb
(
'Not running in personal mode'
)
}
passwordPromptCb
((
passphrase
)
=>
{
...
...
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