Skip to content

Commit

Permalink
feat: add length to Whitelist (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrvk authored Jan 29, 2025
1 parent 117dec6 commit ed54ea4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export class WhitelistHalfAddress implements Whitelist {
private readonly addresses: string[]
) {}

public get length(): number {
return this.addresses.length
}

static new(addresses: Address[]): WhitelistHalfAddress {
return new WhitelistHalfAddress(
addresses?.map((w) => w.lastHalf()) || []
Expand Down

0 comments on commit ed54ea4

Please sign in to comment.