feat(codegen): support multi-validators
* rename force_wrap to force * add a bunch of builder methods to Term<Name> * refactor one tiny location to show off builder methods * split generate into `generate` and `generate_test` * create wrap_as_multi_validator function Co-authored-by: Kasey White <kwhitemsg@gmail.com>
This commit is contained in:
@@ -5,8 +5,8 @@ fn when_tuple(a: (Int, Int)) -> Int {
|
||||
}
|
||||
}
|
||||
|
||||
validator spend {
|
||||
fn(a: Data, b: Data, c) -> Bool {
|
||||
validator {
|
||||
fn spend(a: Data, b: Data, c) -> Bool {
|
||||
when_tuple((4, 1)) == 4
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user