Update txFormat.js

pull/1/head
yann300 7 years ago committed by GitHub
parent 041b8fda8b
commit 8ef8a691de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app/execution/txFormat.js

@ -50,7 +50,7 @@ module.exports = {
var data = '' var data = ''
var dataHex = '' var dataHex = ''
if (params.indexOf('"0x') === 0) { if (params.indexOf('0x') === 0) {
dataHex = params.match(/"(.*?)"/)[1].replace('0x', '') dataHex = params.match(/"(.*?)"/)[1].replace('0x', '')
data = Buffer.from(dataHex, 'hex') data = Buffer.from(dataHex, 'hex')
} else { } else {

Loading…
Cancel
Save