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

refactor extractStateVariablesAt

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