Commit 3b8185cd authored by yann300's avatar yann300

use previous version of remix lib

parent a3cd459e
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -51,12 +51,12 @@ ...@@ -51,12 +51,12 @@
"npm-merge-driver": "^2.3.5", "npm-merge-driver": "^2.3.5",
"npm-run-all": "^4.0.2", "npm-run-all": "^4.0.2",
"onchange": "^3.2.1", "onchange": "^3.2.1",
"remix-analyzer": "0.3.10", "remix-analyzer": "0.3.11",
"remix-debug": "0.3.11", "remix-debug": "0.3.12",
"remix-lib": "0.4.9", "remix-lib": "0.4.10",
"remix-solidity": "0.3.12", "remix-solidity": "0.3.13",
"remix-tabs": "1.0.48", "remix-tabs": "1.0.48",
"remix-tests": "0.1.15", "remix-tests": "0.1.16",
"remixd": "0.1.8-alpha.7", "remixd": "0.1.8-alpha.7",
"request": "^2.83.0", "request": "^2.83.0",
"rimraf": "^2.6.1", "rimraf": "^2.6.1",
......
...@@ -10,13 +10,6 @@ class Settings { ...@@ -10,13 +10,6 @@ class Settings {
constructor (udapp) { constructor (udapp) {
this.udapp = udapp this.udapp = udapp
this.event = new EventManager() this.event = new EventManager()
this.commits = 0
this.udapp.event.register('initiatingTransaction', (error, from, to, data, lookupOnly, txResult) => {
if (error) console.log(error)
executionContext.checkpointAndCommit(() => console.log('checkpoint on VM', this.commits), this.commits)
this.commits++
})
this.udapp.event.register('transactionExecuted', (error, from, to, data, lookupOnly, txResult) => { this.udapp.event.register('transactionExecuted', (error, from, to, data, lookupOnly, txResult) => {
this.event.trigger('transactionExecuted', [error, from, to, data, lookupOnly, txResult]) this.event.trigger('transactionExecuted', [error, from, to, data, lookupOnly, txResult])
......
...@@ -45,6 +45,8 @@ export class RunTab extends LibraryPlugin { ...@@ -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 { ...@@ -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 { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment