diff --git a/dist/bundle.es.js b/dist/bundle.es.js index abdd5b0..374a9df 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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 => { diff --git a/dist/bundle.js b/dist/bundle.js index e97ae9a..ca5b398 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -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) { diff --git a/src/redux/actions/user.js b/src/redux/actions/user.js index ad69edc..b8023f7 100644 --- a/src/redux/actions/user.js +++ b/src/redux/actions/user.js @@ -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,