Commit 4ea30fae authored by yann300's avatar yann300

make solidityState async + change param type

parent 0c064f67
......@@ -40,14 +40,14 @@ function extractStateVariables (contractName, sourcesList) {
/**
* 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 {String} contractName - contract for which state var should be resolved
* @return {Map} - return the state of the contract
*/
function solidityState (storageContent, astList, contractName) {
async function solidityState (storageResolver, astList, contractName) {
var stateVars = extractStateVariables(contractName, astList)
return decodeState(stateVars, storageContent)
return await decodeState(stateVars, storageResolver)
}
module.exports = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment