Problem / Description
There are a few problems with the current adapter:
idCommitment is a stringified hex
getMembershipInfo doesn't return all available membership info fields
validateRateLimit validates the upper and lower bounds defined in the adapter, instead of the contract
Solution
- use
bigint for idCommitment instead of string
- fix:
getMembershipInfo to fetch, and return, ALL available data
- fix: validate rate limits from contract