Skip to content

Commit

Permalink
Alternate Currency Formats breaks ability to send ETH (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
alwx committed Jan 19, 2017
1 parent 4a73fac commit 81794c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ function validateSend(params, context) {
}

try {
var val = web3.toWei(params.amount, "ether");
var val = web3.toWei(params.amount.replace(",", "."), "ether");
if (val <= 0) { throw new Error(); }
} catch (err) {
return {
Expand Down Expand Up @@ -788,7 +788,7 @@ function sendTransaction(params, context) {
var data = {
from: context.from,
to: context.to,
value: web3.toWei(params.amount, "ether")
value: web3.toWei(params.amount.replace(",", "."), "ether")
};

try {
Expand Down

0 comments on commit 81794c8

Please # to comment.