Commit 0d96664c authored by Iuri Matias's avatar Iuri Matias Committed by aniket-engg

refactor extractStateVariablesAt

parent 74b2e297
...@@ -98,12 +98,9 @@ class SolidityProxy { ...@@ -98,12 +98,9 @@ class SolidityProxy {
*/ */
extractStateVariablesAt (vmtraceIndex) { extractStateVariablesAt (vmtraceIndex) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.contractNameAt(vmtraceIndex, (error, contractName) => { this.contractNameAt(vmtraceIndex).then((contractName) => {
if (error) { resolve(this.extractStateVariables(contractName))
return reject(error) }).catch(reject)
}
return resolve(this.extractStateVariables(contractName))
})
}) })
} }
......
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