Is there an example of how to call a script from a predicate or verify that a script has been called from a predicate in standard Sway? (no assembly)
There’s no way to “call” a script from a predicate, predicates are executed in isolation.
However, a predicate can verify the script of the transaction that is calling it, so a predicate can enforce what type of script is used.
We don’t have any examples of this yet, but I’ll see if someone can put together an example.
2 Likes
Okay thanks for the explanation!
Would be great to have an example, thanks so much @david