|
|
@ -45,6 +45,8 @@ export class RunTab extends LibraryPlugin { |
|
|
|
this.filePanel = filePanel |
|
|
|
this.filePanel = filePanel |
|
|
|
this.compilersArtefacts = compilersArtefacts |
|
|
|
this.compilersArtefacts = compilersArtefacts |
|
|
|
this.networkModule = networkModule |
|
|
|
this.networkModule = networkModule |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
executionContext.checkpointAndCommit(() => { console.log('initial checkpoint and commit of JavaScript VM') }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onActivationInternal () { |
|
|
|
onActivationInternal () { |
|
|
@ -70,7 +72,7 @@ export class RunTab extends LibraryPlugin { |
|
|
|
}, |
|
|
|
}, |
|
|
|
getGasLimit: (cb) => { |
|
|
|
getGasLimit: (cb) => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
cb(null, new ethJSUtil.BN($('#gasLimit').val(), 10)) |
|
|
|
cb(null, '0x' + new ethJSUtil.BN($('#gasLimit').val(), 10).toString(16)) |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
cb(e.message) |
|
|
|
cb(e.message) |
|
|
|
} |
|
|
|
} |
|
|
@ -202,7 +204,6 @@ export class RunTab extends LibraryPlugin { |
|
|
|
executionContext.init(this.config) |
|
|
|
executionContext.init(this.config) |
|
|
|
executionContext.stopListenOnLastBlock() |
|
|
|
executionContext.stopListenOnLastBlock() |
|
|
|
executionContext.listenOnLastBlock() |
|
|
|
executionContext.listenOnLastBlock() |
|
|
|
executionContext.checkpointAndCommit(() => console.log('checkpoint on VM'), 0) |
|
|
|
|
|
|
|
this.udapp.resetEnvironment() |
|
|
|
this.udapp.resetEnvironment() |
|
|
|
this.renderInstanceContainer() |
|
|
|
this.renderInstanceContainer() |
|
|
|
this.renderSettings(this.udapp) |
|
|
|
this.renderSettings(this.udapp) |
|
|
|