Skip to content

Commit

Permalink
Removed the regex check for hex encoded input
Browse files Browse the repository at this point in the history
  • Loading branch information
Eswara Sai committed Jan 29, 2018
1 parent 8ef8a69 commit d490708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/execution/txFormat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d490708

Please sign in to comment.