re-add solidity reset

pull/3209/head
yann300 2 years ago
parent 9220b89fe1
commit 856a3e55af
  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