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
3f8b8716
Commit
3f8b8716
authored
Mar 29, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove newAccount from API (use udapp directly)
parent
66e1abdf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
app.js
src/app.js
+2
-4
run-tab.js
src/app/tabs/run-tab.js
+3
-3
No files found.
src/app.js
View file @
3f8b8716
...
@@ -778,9 +778,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
...
@@ -778,9 +778,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
},
},
getCompilationResult
:
()
=>
{
getCompilationResult
:
()
=>
{
return
compiler
.
lastCompilationResult
return
compiler
.
lastCompilationResult
},
newAccount
:
(
pass
,
cb
)
=>
{
udapp
.
newAccount
(
pass
,
cb
)
}
}
}
}
var
rhpEvents
=
{
var
rhpEvents
=
{
...
@@ -791,7 +788,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
...
@@ -791,7 +788,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
staticAnalysis
:
staticanalysis
.
event
staticAnalysis
:
staticanalysis
.
event
}
}
var
rhpOpts
=
{
var
rhpOpts
=
{
pluginAPI
:
new
PluginAPI
(
self
,
compiler
)
pluginAPI
:
new
PluginAPI
(
self
,
compiler
),
udapp
:
udapp
}
}
self
.
_components
.
righthandpanel
=
new
RighthandPanel
(
rhpAPI
,
rhpEvents
,
rhpOpts
)
self
.
_components
.
righthandpanel
=
new
RighthandPanel
(
rhpAPI
,
rhpEvents
,
rhpOpts
)
...
...
src/app/tabs/run-tab.js
View file @
3f8b8716
...
@@ -45,7 +45,7 @@ function runTab (appAPI = {}, appEvents = {}, opts = {}) {
...
@@ -45,7 +45,7 @@ function runTab (appAPI = {}, appEvents = {}, opts = {}) {
var
el
=
yo
`
var
el
=
yo
`
<div>
<div>
${
settings
(
container
,
appAPI
,
appEvents
)}
${
settings
(
container
,
appAPI
,
appEvents
,
opts
)}
${
contractDropdown
(
event
,
appAPI
,
appEvents
,
instanceContainer
)}
${
contractDropdown
(
event
,
appAPI
,
appEvents
,
instanceContainer
)}
${
pendingTxsContainer
}
${
pendingTxsContainer
}
${
instanceContainer
}
${
instanceContainer
}
...
@@ -359,7 +359,7 @@ function contractDropdown (events, appAPI, appEvents, instanceContainer) {
...
@@ -359,7 +359,7 @@ function contractDropdown (events, appAPI, appEvents, instanceContainer) {
/* ------------------------------------------------
/* ------------------------------------------------
section SETTINGS: Environment, Account, Gas, Value
section SETTINGS: Environment, Account, Gas, Value
------------------------------------------------ */
------------------------------------------------ */
function
settings
(
container
,
appAPI
,
appEvents
)
{
function
settings
(
container
,
appAPI
,
appEvents
,
opts
)
{
// SETTINGS HTML
// SETTINGS HTML
var
net
=
yo
`<span class=
${
css
.
network
}
></span>`
var
net
=
yo
`<span class=
${
css
.
network
}
></span>`
const
updateNetwork
=
()
=>
{
const
updateNetwork
=
()
=>
{
...
@@ -374,7 +374,7 @@ function settings (container, appAPI, appEvents) {
...
@@ -374,7 +374,7 @@ function settings (container, appAPI, appEvents) {
}
}
setInterval
(
updateNetwork
,
5000
)
setInterval
(
updateNetwork
,
5000
)
function
newAccount
()
{
function
newAccount
()
{
appAPI
.
newAccount
(
''
,
(
error
,
address
)
=>
{
opts
.
udapp
.
newAccount
(
''
,
(
error
,
address
)
=>
{
if
(
!
error
)
{
if
(
!
error
)
{
container
.
querySelector
(
'#txorigin'
).
appendChild
(
yo
`<option value=
${
address
}
>
${
address
}
</option>`
)
container
.
querySelector
(
'#txorigin'
).
appendChild
(
yo
`<option value=
${
address
}
>
${
address
}
</option>`
)
addTooltip
(
`account
${
address
}
created`
)
addTooltip
(
`account
${
address
}
created`
)
...
...
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