enable new builtins (*with gotcha)
We still need to adjust the writeBits one to work around its list<int> argument.
This commit is contained in:
@@ -505,10 +505,13 @@ pub fn plutus(id_gen: &IdGenerator) -> TypeInfo {
|
||||
annotations: HashMap::new(),
|
||||
};
|
||||
|
||||
for builtin in DefaultFunction::iter().take(75) {
|
||||
let value = from_default_function(builtin, id_gen);
|
||||
|
||||
plutus.values.insert(builtin.aiken_name(), value);
|
||||
for builtin in DefaultFunction::iter() {
|
||||
// FIXME: Disabling WriteBits for now, since its signature requires the ability to create
|
||||
// list of raw integers, which isn't possible through Aiken at the moment.
|
||||
if !matches!(builtin, DefaultFunction::WriteBits) {
|
||||
let value = from_default_function(builtin, id_gen);
|
||||
plutus.values.insert(builtin.aiken_name(), value);
|
||||
}
|
||||
}
|
||||
|
||||
plutus
|
||||
|
||||
@@ -44,7 +44,6 @@ use builder::{
|
||||
introduce_name, introduce_pattern, pop_pattern, softcast_data_to_type_otherwise,
|
||||
unknown_data_to_type, DISCARDED,
|
||||
};
|
||||
|
||||
use decision_tree::{get_tipo_by_path, Assigned, CaseTest, DecisionTree, TreeGen};
|
||||
use indexmap::IndexMap;
|
||||
use interner::AirInterner;
|
||||
|
||||
Reference in New Issue
Block a user