fix: SDK response support #74

Merged
tzarebczan merged 1 commit from 0.44-support into master 2019-11-05 19:56:44 +01:00
3 changed files with 11 additions and 5 deletions

5
dist/bundle.es.js vendored
View file

@ -1519,7 +1519,10 @@ function doClaimYoutubeChannels() {
type: USER_YOUTUBE_IMPORT_STARTED
});
let transferResponse;
return lbryRedux.Lbry.address_list().then(addressList => addressList.sort((a, b) => a.used_times - b.used_times)[0]).then(address => Lbryio.call('yt', 'transfer', {
return lbryRedux.Lbry.address_list({
page: 1,
page_size: 99999
}).then(addressList => addressList.items.sort((a, b) => a.used_times - b.used_times)[0]).then(address => Lbryio.call('yt', 'transfer', {
address: address.address,
public_key: address.pubkey
}).then(response => {

7
dist/bundle.js vendored
View file

@ -3013,8 +3013,11 @@ function doClaimYoutubeChannels() {
type: constants_action_types__WEBPACK_IMPORTED_MODULE_1__["USER_YOUTUBE_IMPORT_STARTED"]
});
var transferResponse;
return lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].address_list().then(function (addressList) {
return addressList.sort(function (a, b) {
return lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].address_list({
page: 1,
page_size: 99999
}).then(function (addressList) {
return addressList.items.sort(function (a, b) {
return a.used_times - b.used_times;
})[0];
}).then(function (address) {

View file

@ -393,8 +393,8 @@ export function doClaimYoutubeChannels() {
});
let transferResponse;
return Lbry.address_list()
.then(addressList => addressList.sort((a, b) => a.used_times - b.used_times)[0])
return Lbry.address_list({ page: 1, page_size: 99999 })
.then(addressList => addressList.items.sort((a, b) => a.used_times - b.used_times)[0])
.then(address =>
Lbryio.call('yt', 'transfer', {
address: address.address,