Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Fix raw data display ('0x') in data-less TXs (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
luclu authored and evertonfraga committed Feb 1, 2017
1 parent 9b4e01a commit 334f6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ipc/methods/eth_sendTransaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = class extends BaseProcessor {
if (_.isString(val)) {

// make sure all data is lowercase and has 0x
val = '0x'+ val.toLowerCase().replace('0x','');
if (val) val = `0x${val.toLowerCase().replace('0x', '')}`;

if (val.match(/[^0-9a-fx]/igm)) {
throw this.ERRORS.INVALID_PAYLOAD;
Expand Down

0 comments on commit 334f6c2

Please sign in to comment.