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
4ea30fae
Commit
4ea30fae
authored
Mar 15, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make solidityState async + change param type
parent
0c064f67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
stateDecoder.js
src/solidity/stateDecoder.js
+3
-3
No files found.
src/solidity/stateDecoder.js
View file @
4ea30fae
...
@@ -40,14 +40,14 @@ function extractStateVariables (contractName, sourcesList) {
...
@@ -40,14 +40,14 @@ function extractStateVariables (contractName, sourcesList) {
/**
/**
* return the state of the given @a contractName as a json object
* return the state of the given @a contractName as a json object
*
*
* @param {
Map} storageContent - contract storage
* @param {
Object} storageResolver - resolve storage queries
* @param {astList} astList - AST nodes of all the sources
* @param {astList} astList - AST nodes of all the sources
* @param {String} contractName - contract for which state var should be resolved
* @param {String} contractName - contract for which state var should be resolved
* @return {Map} - return the state of the contract
* @return {Map} - return the state of the contract
*/
*/
function
solidityState
(
storageContent
,
astList
,
contractName
)
{
async
function
solidityState
(
storageResolver
,
astList
,
contractName
)
{
var
stateVars
=
extractStateVariables
(
contractName
,
astList
)
var
stateVars
=
extractStateVariables
(
contractName
,
astList
)
return
decodeState
(
stateVars
,
storageContent
)
return
await
decodeState
(
stateVars
,
storageResolver
)
}
}
module
.
exports
=
{
module
.
exports
=
{
...
...
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