|
|
|
@ -646,6 +646,9 @@ export class Blockchain extends Plugin { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async loadContext(context: string) { |
|
|
|
|
const saveEvmState = this.config.get('settings/save-env-state') |
|
|
|
|
|
|
|
|
|
if (saveEvmState) { |
|
|
|
|
const contextExists = await this.call('fileManager', 'exists', `.states/${context}/state.json`) |
|
|
|
|
|
|
|
|
|
if (contextExists) { |
|
|
|
@ -655,6 +658,7 @@ export class Blockchain extends Plugin { |
|
|
|
|
} else { |
|
|
|
|
await this.getCurrentProvider().resetEnvironment() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// TODO: most params here can be refactored away in txRunner
|
|
|
|
|
const web3Runner = new TxRunnerWeb3( |
|
|
|
|