refactor getLastCallChangeSince

pull/5370/head
Iuri Matias 4 years ago committed by aniket-engg
parent e7301359e0
commit cffbf137e3
  1. 9
      libs/remix-debug/src/solidity-decoder/solidityProxy.js

@ -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))
})
}) })
} }

Loading…
Cancel
Save