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
d28f7607
Commit
d28f7607
authored
Feb 06, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move execution context dependency from udapp-ui to udapp
parent
4324d003
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
universal-dapp-ui.js
src/universal-dapp-ui.js
+1
-2
universal-dapp.js
src/universal-dapp.js
+4
-0
No files found.
src/universal-dapp-ui.js
View file @
d28f7607
...
...
@@ -6,7 +6,6 @@ var remixLib = require('remix-lib')
var
yo
=
require
(
'yo-yo'
)
var
txHelper
=
require
(
'./app/execution/txHelper'
)
var
helper
=
require
(
'./lib/helper'
)
var
executionContext
=
require
(
'./execution-context'
)
var
copyToClipboard
=
require
(
'./app/ui/copy-to-clipboard'
)
// -------------- styling ----------------------
...
...
@@ -171,7 +170,7 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
address
=
(
address
.
slice
(
0
,
2
)
===
'0x'
?
''
:
'0x'
)
+
address
.
toString
(
'hex'
)
var
instance
=
yo
`<div class="instance
${
css
.
instance
}
" id="instance
${
address
}
"></div>`
var
context
=
executionContext
.
isVM
()
?
'memory'
:
'blockchain'
var
context
=
self
.
udapp
.
context
()
var
shortAddress
=
helper
.
shortenAddress
(
address
)
var
title
=
yo
`<div class="
${
css
.
title
}
" onclick=
${
toggleClass
}
>
...
...
src/universal-dapp.js
View file @
d28f7607
...
...
@@ -184,6 +184,10 @@ UniversalDAppModel.prototype.call = function (isUserAction, args, value, lookupO
})
}
UniversalDAppModel
.
prototype
.
context
=
function
()
{
return
(
executionContext
.
isVM
()
?
'memory'
:
'blockchain'
)
}
function
execute
(
pipeline
,
env
,
callback
)
{
function
next
(
err
,
env
)
{
if
(
err
)
return
callback
(
err
)
...
...
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