refactor extractStateVariablesAt

pull/62/head
Iuri Matias 4 years ago committed by aniket-engg
parent 74b2e29744
commit 0d96664ca1
  1. 9
      libs/remix-debug/src/solidity-decoder/solidityProxy.js

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

Loading…
Cancel
Save