updates for new daemon

change wallet_unused_address > address_unused and category > type
This commit is contained in:
Thomas Zarebczan 2018-11-12 13:23:50 -05:00 committed by GitHub
parent 7a458ea13c
commit b0b8a2c809
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ rewards.claimReward = (type, rewardParams) => {
}
return new Promise((resolve, reject) => {
Lbry.wallet_unused_address().then(address => {
Lbry.address_unused().then(address => {
const params = {
reward_type: type,
wallet_address: address,
@ -67,7 +67,7 @@ rewards.claimReward = (type, rewardParams) => {
foundClaim.name.length &&
foundClaim.name[0] === '@' &&
foundClaim.txid.length &&
foundClaim.category === 'claim'
foundClaim.type === 'claim'
);
if (claim) {
params.transaction_id = claim.txid;
@ -89,7 +89,7 @@ rewards.claimReward = (type, rewardParams) => {
foundClaim.name.length &&
foundClaim.name[0] !== '@' &&
foundClaim.txid.length &&
foundClaim.category === 'claim'
foundClaim.type === 'claim'
);
if (claim) {
params.transaction_id = claim.txid;