feat: Add tracing for common multivalidator issues

This commit is contained in:
microproofs
2023-10-07 15:52:28 -04:00
committed by Kasey
parent 68d9a21c6a
commit 8964675670
3 changed files with 88 additions and 20 deletions

View File

@@ -296,6 +296,25 @@ impl<T> Term<T> {
.force()
}
pub fn delayed_choose_data(
self,
constr_case: Self,
map_case: Self,
array_case: Self,
int_case: Self,
bytes_case: Self,
) -> Self {
Term::Builtin(DefaultFunction::ChooseData)
.force()
.apply(self)
.apply(constr_case.delay())
.apply(map_case.delay())
.apply(array_case.delay())
.apply(int_case.delay())
.apply(bytes_case.delay())
.force()
}
pub fn trace(self, msg_term: Self) -> Self {
Term::Builtin(DefaultFunction::Trace)
.force()