Callable function

A callable function is a function of a dApp script that has @Callable annotation.

A dApp script may have several callable functions.

A callable function of a dApp can be invoked by the invoke script transaction.


func rate(name: String, rating: Int) = {
    WriteSet([DataEntry(inv.caller.toString(), name + rating.toString()])

results matching ""

    No results matching ""