I give to Integer via an endpoint function, multiply them and give them to
Constraints.mustPayToTheScript
. For this I need the result to be converted into an Value
. Does Anyone know how to do this?
buy = endpoint @"buy" @BuyParams $ \ (BuyParams fst scd ) -> do
let amt = fst*scd
let tx = Constraints.mustPayToTheScript (hashString fst) amt
void (submitTxConstraints gameInstance tx)