mirror of https://github.com/BTCPrivate/copay.git
fix sweep paper wallet
This commit is contained in:
parent
3a49053345
commit
d42fd3cb27
|
@ -60,7 +60,7 @@ angular.module('copayApp.controllers').controller('paperWalletController',
|
||||||
$scope.wallet.buildTxFromPrivateKey($scope.privateKey, destinationAddress, null, function(err, testTx) {
|
$scope.wallet.buildTxFromPrivateKey($scope.privateKey, destinationAddress, null, function(err, testTx) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
var rawTxLength = testTx.serialize().length;
|
var rawTxLength = testTx.serialize().length;
|
||||||
feeService.getCurrentFeeRate('livenet', null, function(err, feePerKB) {
|
feeService.getCurrentFeeRate('livenet', function(err, feePerKB) {
|
||||||
var opts = {};
|
var opts = {};
|
||||||
opts.fee = Math.round((feePerKB * rawTxLength) / 2000);
|
opts.fee = Math.round((feePerKB * rawTxLength) / 2000);
|
||||||
$scope.wallet.buildTxFromPrivateKey($scope.privateKey, destinationAddress, opts, function(err, tx) {
|
$scope.wallet.buildTxFromPrivateKey($scope.privateKey, destinationAddress, opts, function(err, tx) {
|
||||||
|
|
Loading…
Reference in New Issue