Update txFormat.js

pull/1/head
yann300 7 years ago committed by GitHub
parent 4730ca995f
commit 041b8fda8b
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 dataHex = ''
if (params.startsWith('"0x')) {
if (params.indexOf('"0x') === 0) {
dataHex = params.match(/"(.*?)"/)[1].replace('0x', '')
data = Buffer.from(dataHex, 'hex')
} else {

Loading…
Cancel
Save