diff --git a/libs/remix-debug/src/solidity-decoder/solidityProxy.js b/libs/remix-debug/src/solidity-decoder/solidityProxy.js index 9f53253b95..e6640fae7c 100644 --- a/libs/remix-debug/src/solidity-decoder/solidityProxy.js +++ b/libs/remix-debug/src/solidity-decoder/solidityProxy.js @@ -98,9 +98,12 @@ class SolidityProxy { */ extractStateVariablesAt (vmtraceIndex) { return new Promise((resolve, reject) => { - this.contractNameAt(vmtraceIndex).then((contractName) => { - resolve(this.extractStateVariables(contractName)) - }).catch(reject) + this.contractNameAt(vmtraceIndex, (error, contractName) => { + if (error) { + return reject(error) + } + return resolve(this.extractStateVariables(contractName)) + }) }) }