Merge pull request #6348 from gabrielbazan7/fix/paperWallet1

fix sweep paper wallet
This commit is contained in:
Gustavo Maximiliano Cortez 2017-07-03 10:04:38 -03:00 committed by GitHub
commit ece5c47ff7
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ angular.module('copayApp.controllers').controller('paperWalletController',
$scope.wallet.buildTxFromPrivateKey($scope.privateKey, destinationAddress, null, function(err, testTx) {
if (err) return cb(err);
var rawTxLength = testTx.serialize().length;
feeService.getCurrentFeeRate('livenet', null, function(err, feePerKB) {
feeService.getCurrentFeeRate('livenet', function(err, feePerKB) {
var opts = {};
opts.fee = Math.round((feePerKB * rawTxLength) / 2000);
$scope.wallet.buildTxFromPrivateKey($scope.privateKey, destinationAddress, opts, function(err, tx) {