0xMiden/air-script

Treatment of duplicate integrity constraints

Ouverte

#275 ouverte le 26 avr. 2023

 (4 commentaires) (0 réaction) (0 personne assignée)Rust (37 forks)github user discovery
good first issue

Métriques du dépôt

Stars
 (96 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Currently we don't throw an error if a user defines duplicate constraints, we transpile them into two equivalent constraints. We could do one of the following:

  1. Generate only one constraint in this case and ignore duplicates.
  2. Throw an error since this is most likely unintended.
  3. Throw a warning (in future) but still generate one constraint.

Guide contributeur