Skip to content

Commit

Permalink
Change getGapPaymentChannelAddresses back to `getGapPaymentChannelA…
Browse files Browse the repository at this point in the history
…ddressesForZone`
  • Loading branch information
rileystephens28 committed Nov 27, 2024
1 parent 06315f8 commit 85c7a30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wallet/qi-hdwallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1603,9 +1603,11 @@ export class QiHDWallet extends AbstractHDWallet<QiAddressInfo> {
* @param {string} paymentCode - The payment code.
* @returns {QiAddressInfo[]} The gap payment channel addresses for the payment code.
*/
public getGapPaymentChannelAddresses(paymentCode: string): QiAddressInfo[] {
public getGapPaymentChannelAddressesForZone(paymentCode: string, zone: Zone): QiAddressInfo[] {
return (
this._addressesMap.get(paymentCode)?.filter((addressInfo) => addressInfo.status === AddressStatus.UNUSED) ||
this._addressesMap
.get(paymentCode)
?.filter((addressInfo) => addressInfo.status === AddressStatus.UNUSED && addressInfo.zone === zone) ||
[]
);
}
Expand Down

0 comments on commit 85c7a30

Please sign in to comment.