Fix bug on send transaction about float precision

This commit is contained in:
Yemel Jardi 2014-06-04 17:40:10 -03:00
commit 953269d83b

View file

@ -46,7 +46,7 @@ angular.module('copayApp.controllers').controller('SendController',
$scope.loading = true;
var address = form.address.$modelValue;
var amount = (form.amount.$modelValue * 100000000).toString(); // satoshi to string
var amount = (form.amount.$modelValue * 100000000).toFixed(); // satoshi to string
var w = $rootScope.wallet;
w.createTx(address, amount,function() {