update required_fee_rate field + test + bump

This commit is contained in:
Matias Alejo Garcia 2018-02-27 19:45:16 -03:00
parent f5013f0ece
commit a4ffc9a05f
No known key found for this signature in database
GPG Key ID: 02470DB551277AB3
5 changed files with 12 additions and 12 deletions

View File

@ -173,7 +173,7 @@ PayPro.get = function(opts, cb) {
url: opts.url,
};
var requiredFeeRate = pd.get('requiredFeeRate');
var requiredFeeRate = pd.get('required_fee_rate');
if (requiredFeeRate)
ret.requiredFeeRate = requiredFeeRate;

8
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "bitcore-wallet-client",
"version": "6.6.4",
"version": "6.7.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -417,9 +417,9 @@
}
},
"bitcore-payment-protocol": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/bitcore-payment-protocol/-/bitcore-payment-protocol-1.6.1.tgz",
"integrity": "sha512-i1qeG1Nanviy3RgFVVt9wtwt9JPPVkLo5VvHhwKZLTImA4j+BPKPkSPCwXcpRgpkBknTxzs00qnJ2NfanfcvNg==",
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/bitcore-payment-protocol/-/bitcore-payment-protocol-1.7.0.tgz",
"integrity": "sha512-1IeTxCGARPF7tnX8tYxRDO5yIcBxK/oUG2+L7C3KgjKhajtxqRmYui7oufTaDNgxewBMOyX8sQCx+6QNqKxP0g==",
"requires": {
"asn1.js": "4.9.1",
"asn1.js-rfc3280": "4.0.0",

View File

@ -2,7 +2,7 @@
"name": "bitcore-wallet-client",
"description": "Client for bitcore-wallet-service",
"author": "BitPay Inc",
"version": "6.7.0",
"version": "6.7.1",
"license": "MIT",
"keywords": [
"bitcoin",
@ -29,7 +29,7 @@
"bitcore-lib": "^0.15.0",
"bitcore-lib-cash": "^0.16.1",
"bitcore-mnemonic": "^1.3.0",
"bitcore-payment-protocol": "^1.6.1",
"bitcore-payment-protocol": "^1.7.0",
"json-stable-stringify": "^1.0.0",
"lodash": "^4.17.4",
"preconditions": "^1.0.8",

View File

@ -2943,9 +2943,9 @@ describe('client API', function() {
should.not.exist(err);
var tx = txps[0];
// From the hardcoded paypro request
tx.outputs[0].amount.should.equal(9500);
tx.outputs[0].toAddress.should.equal('mqUwqJpHM8C9J6htJiP5SB534wPdE5kEHN');
tx.message.should.equal('Payment request for BitPay invoice 5q5GuCSCj97wLLVG5AJAQx for merchant GusPay');
tx.outputs[0].amount.should.equal(9400);
tx.outputs[0].toAddress.should.equal('mrobN6UstsVWLHqxfRDFz3WYxnKwxEHCEv');
tx.message.should.equal('Payment request for BitPay invoice 4QZqHsP42WWzkec74jTHc4 for merchant GusPay');
tx.payProUrl.should.equal('dummy');
tx.feePerKb.should.equal(1024);
done();
@ -2968,7 +2968,7 @@ describe('client API', function() {
args.method.should.equal('POST');
args.body.length.should.be.within(440, 460);
memo.should.equal('Transaction received by BitPay. Invoice will be marked as paid if the transaction is confirmed.');
zz.message.should.equal('Payment request for BitPay invoice 5q5GuCSCj97wLLVG5AJAQx for merchant GusPay');
zz.message.should.equal('Payment request for BitPay invoice 4QZqHsP42WWzkec74jTHc4 for merchant GusPay');
zz.feePerKb.should.equal(1024);
done();
});

File diff suppressed because one or more lines are too long