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
d07ff7be
Commit
d07ff7be
authored
Dec 31, 2019
by
Iuri Matias
Committed by
yann300
Feb 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move executionContext initialization to blockchain object
parent
72d97a3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
app.js
src/app.js
+1
-3
blockchain.js
src/app/tabs/runTab/model/blockchain.js
+2
-1
No files found.
src/app.js
View file @
d07ff7be
...
...
@@ -22,8 +22,6 @@ var toolTip = require('./app/ui/tooltip')
var
CompilerMetadata
=
require
(
'./app/files/compiler-metadata'
)
var
CompilerImport
=
require
(
'./app/compiler/compiler-imports'
)
var
executionContext
=
remixLib
.
execution
.
executionContext
const
Blockchain
=
require
(
'./app/tabs/runTab/model/blockchain.js'
)
const
PluginManagerComponent
=
require
(
'./app/components/plugin-manager-component'
)
...
...
@@ -224,7 +222,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const
fileManager
=
new
FileManager
(
editor
)
registry
.
put
({
api
:
fileManager
,
name
:
'filemanager'
})
const
blockchain
=
new
Blockchain
(
registry
.
get
(
'config'
).
api
,
executionContext
)
const
blockchain
=
new
Blockchain
(
registry
.
get
(
'config'
).
api
)
// ----------------- compilation metadata generation servive ----------------------------
const
compilerMetadataGenerator
=
new
CompilerMetadata
(
blockchain
,
fileManager
,
registry
.
get
(
'config'
).
api
)
...
...
src/app/tabs/runTab/model/blockchain.js
View file @
d07ff7be
...
...
@@ -4,6 +4,7 @@ const txExecution = remixLib.execution.txExecution
const
typeConversion
=
remixLib
.
execution
.
typeConversion
const
Txlistener
=
remixLib
.
execution
.
txListener
const
EventManager
=
remixLib
.
EventManager
const
executionContext
=
remixLib
.
execution
.
executionContext
const
ethJSUtil
=
require
(
'ethereumjs-util'
)
const
Personal
=
require
(
'web3-eth-personal'
)
const
Web3
=
require
(
'web3'
)
...
...
@@ -13,7 +14,7 @@ import { UniversalDApp } from 'remix-lib'
class
Blockchain
{
// NOTE: the config object will need to be refactored out in remix-lib
constructor
(
config
,
executionContext
)
{
constructor
(
config
)
{
this
.
event
=
new
EventManager
()
this
.
executionContext
=
executionContext
this
.
udapp
=
new
UniversalDApp
(
config
,
this
.
executionContext
)
...
...
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