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
d767be8c
Commit
d767be8c
authored
May 27, 2021
by
aniket-engg
Committed by
Aniket
May 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import and destructuring
parent
af2d5867
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
21 deletions
+11
-21
blockchain.js
apps/remix-ide/src/blockchain/blockchain.js
+11
-21
No files found.
apps/remix-ide/src/blockchain/blockchain.js
View file @
d767be8c
import
Web3
from
'web3'
import
{
toBuffer
}
from
'ethereumjs-util'
const
remixLib
=
require
(
'@remix-project/remix-lib'
)
const
txFormat
=
remixLib
.
execution
.
txFormat
const
txExecution
=
remixLib
.
execution
.
txExecution
const
typeConversion
=
remixLib
.
execution
.
typeConversion
const
Txlistener
=
remixLib
.
execution
.
txListener
const
TxRunner
=
remixLib
.
execution
.
TxRunner
const
TxRunnerWeb3
=
remixLib
.
execution
.
TxRunnerWeb3
const
txHelper
=
remixLib
.
execution
.
txHelper
const
EventManager
=
remixLib
.
EventManager
const
{
ExecutionContext
}
=
require
(
'./execution-context'
)
const
Web3
=
require
(
'web3'
)
const
async
=
require
(
'async'
)
const
{
EventEmitter
}
=
require
(
'events'
)
const
{
resultToRemixTx
}
=
remixLib
.
helpers
.
txResultHelper
const
VMProvider
=
require
(
'./providers/vm.js'
)
const
InjectedProvider
=
require
(
'./providers/injected.js'
)
const
NodeProvider
=
require
(
'./providers/node.js'
)
import
{
waterfall
}
from
'async'
import
{
EventEmitter
}
from
'events'
import
{
ExecutionContext
}
from
'./execution-context'
import
VMProvider
from
'./providers/vm.js'
import
InjectedProvider
from
'./providers/injected.js'
import
NodeProvider
from
'./providers/node.js'
import
{
execution
,
EventManager
,
helpers
}
from
'@remix-project/remix-lib'
const
{
txFormat
,
txExecution
,
typeConversion
,
txListener
:
Txlistener
,
TxRunner
,
TxRunnerWeb3
,
txHelper
}
=
execution
const
{
txResultHelper
:
resultToRemixTx
}
=
helpers
class
Blockchain
{
// NOTE: the config object will need to be refactored out in remix-lib
...
...
@@ -397,7 +387,7 @@ class Blockchain {
runTx
(
args
,
confirmationCb
,
continueCb
,
promptCb
,
cb
)
{
const
self
=
this
async
.
waterfall
([
waterfall
([
function
getGasLimit
(
next
)
{
if
(
self
.
transactionContextAPI
.
getGasLimit
)
{
return
self
.
transactionContextAPI
.
getGasLimit
(
next
)
...
...
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