Skip to content

Commit

Permalink
Uncaught BigNumber Error: new BigNumber() number type has more than 1…
Browse files Browse the repository at this point in the history
…5 significant digits: 8999999999999999
  • Loading branch information
owocki committed Nov 30, 2018
1 parent 1e4ba31 commit 2844a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/v2/js/pages/kudos_send.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ function sendKudos(email, github_url, from_name, username, amountInEth, comments
console.log('destinationAccount:' + destinationAccount);

var kudosPriceInEth = parseFloat($('#kudosPrice').attr('data-ethprice')) || $('.kudos-search').select2('data')[0].price_finney;
var kudosPriceInWei = new web3.BigNumber(kudosPriceInEth * 1.0 * Math.pow(10, 18));
var kudosPriceInWei = new web3.BigNumber((kudosPriceInEth * 1.0 * Math.pow(10, 18)).toString());

if (is_direct_to_recipient) {
// Step 9
Expand Down

0 comments on commit 2844a84

Please sign in to comment.