Unverified Commit 8ef8a691 authored by yann300's avatar yann300 Committed by GitHub

Update txFormat.js

parent 041b8fda
...@@ -50,7 +50,7 @@ module.exports = { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment