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

[confirmation window] Fix raw data ('0x') display in data-less TXs #1625

Merged
merged 4 commits into from
Feb 1, 2017
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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