fix feeService param
This commit is contained in:
parent
b30a371a68
commit
b61f0785bf
1 changed files with 1 additions and 1 deletions
|
|
@ -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.getCurrentFeeValue($scope.wallet, function(err, feePerKB) {
|
feeService.getCurrentFeeValue('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…
Add table
Add a link
Reference in a new issue