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
d8f503d5
Commit
d8f503d5
authored
Aug 28, 2017
by
yann300
Committed by
GitHub
Aug 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #558 from ethereum/enhanceWeb3provider
add util function to web3vm provider
parents
8143fd1c
f90e4ea7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
web3VmProvider.js
src/web3Provider/web3VmProvider.js
+10
-0
No files found.
src/web3Provider/web3VmProvider.js
View file @
d8f503d5
...
...
@@ -30,6 +30,16 @@ function web3VmProvider () {
this
.
currentProvider
=
{
'host'
:
'vm provider'
}
this
.
storageCache
=
{}
this
.
sha3Preimages
=
{}
// util
this
.
sha3
=
function
()
{
return
web3
.
sha3
.
apply
(
web3
,
arguments
)
}
this
.
toHex
=
function
()
{
return
web3
.
toHex
.
apply
(
web3
,
arguments
)
}
this
.
toAscii
=
function
()
{
return
web3
.
toAscii
.
apply
(
web3
,
arguments
)
}
this
.
fromAscii
=
function
()
{
return
web3
.
fromAscii
.
apply
(
web3
,
arguments
)
}
this
.
fromDecimal
=
function
()
{
return
web3
.
fromDecimal
.
apply
(
web3
,
arguments
)
}
this
.
fromWei
=
function
()
{
return
web3
.
fromWei
.
apply
(
web3
,
arguments
)
}
this
.
toWei
=
function
()
{
return
web3
.
toWei
.
apply
(
web3
,
arguments
)
}
this
.
toBigNumber
=
function
()
{
return
web3
.
toBigNumber
.
apply
(
web3
,
arguments
)
}
this
.
isAddress
=
function
()
{
return
web3
.
isAddress
.
apply
(
web3
,
arguments
)
}
}
web3VmProvider
.
prototype
.
setVM
=
function
(
vm
)
{
...
...
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