Skip to content

Commit

Permalink
add felt252 to types able to form constants
Browse files Browse the repository at this point in the history
  • Loading branch information
javra committed Jul 10, 2024
1 parent 5957dc8 commit 17d89cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Aegis/Types.lean
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ partial def translate (raw : HashMap Identifier Identifier) (ctx : List Identifi
let x ← idents.mapM <| translate raw (i :: ident :: ctx) -- really add `ident`?
let (lvs, tys) := x.unzip
.ok (lvs.join, .ConstStruct ty tys)
| .U8 | .U16 | .U32 | .U64 | .U128 =>
| .U8 | .U16 | .U32 | .U64 | .U128 | .Felt252 =>
let num : ℤ ← match ps with
| [.const n] => pure n
| _ => throw "parameter to numerical constant type must be a numeral"
Expand Down

0 comments on commit 17d89cc

Please sign in to comment.