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
93093436
Commit
93093436
authored
Jul 15, 2019
by
Grandschtroumpf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standard fixes
parent
a562a413
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
universalDapp.js
remix-lib/src/universalDapp.js
+3
-4
No files found.
remix-lib/src/universalDapp.js
View file @
93093436
const
async
=
require
(
'async'
)
const
async
=
require
(
'async'
)
const
{
BN
,
privateToAddress
,
isValidPrivate
,
stripHexPrefix
}
=
require
(
'ethereumjs-util'
)
const
{
BN
,
privateToAddress
,
isValidPrivate
,
stripHexPrefix
}
=
require
(
'ethereumjs-util'
)
const
crypto
=
require
(
'crypto'
)
const
crypto
=
require
(
'crypto'
)
const
{
EventEmitter
}
=
require
(
'events'
)
;
const
{
EventEmitter
}
=
require
(
'events'
)
const
TxRunner
=
require
(
'./execution/txRunner'
)
const
TxRunner
=
require
(
'./execution/txRunner'
)
const
txHelper
=
require
(
'./execution/txHelper'
)
const
txHelper
=
require
(
'./execution/txHelper'
)
...
@@ -345,7 +345,7 @@ module.exports = class UniversalDApp {
...
@@ -345,7 +345,7 @@ module.exports = class UniversalDApp {
function
runTransaction
(
fromAddress
,
value
,
gasLimit
,
next
)
{
function
runTransaction
(
fromAddress
,
value
,
gasLimit
,
next
)
{
const
tx
=
{
to
:
args
.
to
,
data
:
args
.
data
.
dataHex
,
useCall
:
args
.
useCall
,
from
:
fromAddress
,
value
:
value
,
gasLimit
:
gasLimit
,
timestamp
:
args
.
data
.
timestamp
}
const
tx
=
{
to
:
args
.
to
,
data
:
args
.
data
.
dataHex
,
useCall
:
args
.
useCall
,
from
:
fromAddress
,
value
:
value
,
gasLimit
:
gasLimit
,
timestamp
:
args
.
data
.
timestamp
}
const
payLoad
=
{
funAbi
:
args
.
data
.
funAbi
,
funArgs
:
args
.
data
.
funArgs
,
contractBytecode
:
args
.
data
.
contractBytecode
,
contractName
:
args
.
data
.
contractName
,
contractABI
:
args
.
data
.
contractABI
,
linkReferences
:
args
.
data
.
linkReferences
}
const
payLoad
=
{
funAbi
:
args
.
data
.
funAbi
,
funArgs
:
args
.
data
.
funArgs
,
contractBytecode
:
args
.
data
.
contractBytecode
,
contractName
:
args
.
data
.
contractName
,
contractABI
:
args
.
data
.
contractABI
,
linkReferences
:
args
.
data
.
linkReferences
}
cons
t
timestamp
=
Date
.
now
()
le
t
timestamp
=
Date
.
now
()
if
(
tx
.
timestamp
)
{
if
(
tx
.
timestamp
)
{
timestamp
=
tx
.
timestamp
timestamp
=
tx
.
timestamp
}
}
...
@@ -368,4 +368,4 @@ module.exports = class UniversalDApp {
...
@@ -368,4 +368,4 @@ module.exports = class UniversalDApp {
}
}
],
cb
)
],
cb
)
}
}
}
}
\ No newline at end of file
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