Commit 0b3033ed authored by yann300's avatar yann300

fix using latest remix libs

parent 689585a1
...@@ -3,6 +3,7 @@ import * as packageJson from '../../../package.json' ...@@ -3,6 +3,7 @@ import * as packageJson from '../../../package.json'
const $ = require('jquery') const $ = require('jquery')
const yo = require('yo-yo') const yo = require('yo-yo')
const ethJSUtil = require('ethereumjs-util')
const EventManager = require('../../lib/events') const EventManager = require('../../lib/events')
const Card = require('../ui/card') const Card = require('../ui/card')
...@@ -68,7 +69,11 @@ export class RunTab extends LibraryPlugin { ...@@ -68,7 +69,11 @@ export class RunTab extends LibraryPlugin {
} }
}, },
getGasLimit: (cb) => { getGasLimit: (cb) => {
cb(null, $('#gasLimit').val()) try {
cb(null, new ethJSUtil.BN($('#gasLimit').val(), 10))
} catch (e) {
cb(e.message)
}
} }
}) })
} }
......
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