fix using latest remix libs

pull/1/head
yann300 5 years ago
parent 689585a10c
commit 0b3033ed6c
  1. 7
      src/app/udapp/run-tab.js

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

Loading…
Cancel
Save