Consensys / linea-attestation-registry

Verax is a shared registry for storing attestations of public interest on EVM chains, designed to enhance data discoverability and consumption for dApps across the network.
https://ver.ax
MIT License
142 stars 71 forks source link

[TASK] Stop counting expired/revoked/replaced Attestation via the `balanceOf` function #806

Open alainncls opened 6 days ago

alainncls commented 6 days ago

Currently, the balanceOf function of the AttestationRegistry contract counts the expired/revoked/replaced Attestations. To make its behaviour clearer, let's change the balanceOf function to return 0 if the corresponding Attestation is either expired, revoked or replaced (actually, checking for revocation covers the 'replacement' case).