Skip to content

Commit

Permalink
chore: applied review remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha87 committed Aug 1, 2024
1 parent 37be0d3 commit 4c3a61c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/market/scan/scanned-offer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,9 @@ export class ScannedOffer {
* ```
*/
get paymentPlatformAddresses(): PaymentPlatformAddressSet {
const propRegex = /golem.com.payment.platform.([a-z0-9-]+).address/;
const platformProps = Object.entries(this.model.properties).filter(([key]) => key.match(propRegex));
const propRegex = /golem\.com\.payment\.platform\.([a-z0-9-]+)\.address/;

const platformAddress = platformProps
const platformAddress = Object.entries(this.model.properties)
.map<[string, string]>(([key, address]) => {
const match = key.match(propRegex);
return [match ? match[1] : "", address];
Expand Down

0 comments on commit 4c3a61c

Please sign in to comment.