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