feat: impl serde on errythang

This commit is contained in:
rvcas
2024-03-07 13:54:20 -05:00
committed by Lucas
parent 49ca7e1f75
commit fe6710935d
12 changed files with 217 additions and 59 deletions

View File

@@ -8,7 +8,7 @@ use crate::ast::Term;
/// All the possible builtin functions in Untyped Plutus Core.
#[repr(u8)]
#[allow(non_camel_case_types)]
#[derive(Debug, Clone, PartialEq, Eq, Copy, EnumIter)]
#[derive(Debug, Clone, PartialEq, Eq, Copy, EnumIter, serde::Serialize, serde::Deserialize)]
pub enum DefaultFunction {
// Integer functions
AddInteger = 0,