Skip to content

attest overwrites existing attestation — user loses prior jurisdiction on re-attest #22

Description

@Escelit

Description:
ComplianceRegistry::attest stores a single Attestation record per user address keyed by DataKey::Attestation(user). If a user is attested for US and later re-attested for EU, the second call silently replaces the first. The test_multiple_jurisdictions test explicitly asserts this behaviour and marks it as expected — but it means a user can never hold two concurrent valid attestations, which is required for cross-border transactions (e.g., a US resident investing in an EU-jurisdiction property).

Expected behaviour:
Attestations should be stored per (user, jurisdiction) pair, e.g. DataKey::Attestation(Address, Symbol).

Labels: bug, contracts, compliance-registry, high-priority

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions