re-add solidity reset

pull/5370/head
yann300 2 years ago
parent abab632857
commit e195a2c098
  1. 1
      libs/remix-debug/src/Ethdebugger.ts
  2. 8
      libs/remix-debug/src/solidity-decoder/solidityProxy.ts

@ -180,6 +180,7 @@ export class Ethdebugger {
unLoad () {
this.traceManager.init()
this.codeManager.clear()
this.solidityProxy.reset()
this.event.trigger('traceUnloaded')
}

@ -20,6 +20,14 @@ export class SolidityProxy {
this.compilationResult = compilationResult
}
/**
* reset the cache and apply a new @arg compilationResult
*
*/
reset () {
this.cache.reset()
}
/**
* retrieve the compiled contract name at the @arg vmTraceIndex (cached)
*

Loading…
Cancel
Save