- You can create your own predicates for reusability and better readability:
predicate_name :- predicate_body
call_fn(hyperdapp, owner, [OwnerAddress]).
text('Welcome ', OwnerAddress)
The output value of the
ownermethod is stored in the
OwnerAddressvariable. To expose this value outside of your predicate, we just need to add it as an input.