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

refactor getLastCallChangeSince

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