Removed the regex check for hex encoded input

pull/3094/head
Eswara Sai 7 years ago
parent 3738d43584
commit fe7795199a
  1. 2
      src/app/execution/txFormat.js

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

Loading…
Cancel
Save