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
5dd4e1bd
Commit
5dd4e1bd
authored
Dec 26, 2018
by
Iuri Matias
Committed by
yann300
Jan 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove no longer necessary registry paramter from udapp constructor
parent
2171bd84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
app.js
src/app.js
+1
-1
universal-dapp.js
src/universal-dapp.js
+2
-4
No files found.
src/app.js
View file @
5dd4e1bd
...
...
@@ -313,7 +313,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
registry
.
put
({
api
:
self
.
_components
.
compilersArtefacts
,
name
:
'compilersartefacts'
})
// ----------------- UniversalDApp -----------------
var
udapp
=
new
UniversalDApp
(
registry
,
registry
.
get
(
'config'
).
api
)
var
udapp
=
new
UniversalDApp
(
registry
.
get
(
'config'
).
api
)
registry
.
put
({
api
:
udapp
,
name
:
'udapp'
})
udapp
.
event
.
register
(
'transactionBroadcasted'
,
(
txhash
,
networkName
)
=>
{
var
txLink
=
executionContext
.
txDetailsLink
(
networkName
,
txhash
)
...
...
src/universal-dapp.js
View file @
5dd4e1bd
...
...
@@ -8,16 +8,13 @@ var txHelper = remixLib.execution.txHelper
var
EventManager
=
remixLib
.
EventManager
var
executionContext
=
remixLib
.
execution
.
executionContext
function
UniversalDApp
(
globalRegistry
,
config
)
{
function
UniversalDApp
(
config
)
{
this
.
event
=
new
EventManager
()
var
self
=
this
self
.
_deps
=
{
config
:
globalRegistry
.
get
(
'config'
).
api
,
compiler
:
globalRegistry
.
get
(
'compiler'
).
api
}
executionContext
.
event
.
register
(
'contextChanged'
,
this
,
function
(
context
)
{
self
.
resetEnvironment
()
})
self
.
_txRunnerAPI
=
{
config
:
self
.
_deps
.
config
,
detectNetwork
:
(
cb
)
=>
{
...
...
@@ -30,6 +27,7 @@ function UniversalDApp (globalRegistry, config) {
self
.
txRunner
=
new
TxRunner
({},
self
.
_txRunnerAPI
)
self
.
accounts
=
{}
self
.
resetEnvironment
()
executionContext
.
event
.
register
(
'contextChanged'
,
this
.
resetEnvironment
.
bind
(
this
))
}
UniversalDApp
.
prototype
.
resetEnvironment
=
function
()
{
...
...
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