Removed the regex check for hex encoded input

pull/1/head
Eswara Sai 7 years ago
parent 8ef8a691de
commit d490708959
  1. 2
      src/app/execution/txFormat.js

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

Loading…
Cancel
Save