I am not able to resolve this. It shows this error at create tokenOffer with …
with
issuer: Party
owner: Party
description: Text
userAdmin: Party --makes sure that issuer and owner are legit
issued: Time
lastPrice: Decimal
currency: Text
royaltyRate: Decimal
where
signatory issuer, userAdmin
choice Offer: (ContractId Offer, ContractId Payable)
with
newOwner: Party
price: Decimal
controller owner
do
create tokenOffer
with ..
template tokenOffer
with
issuer: Party
owner: Party
description: Text
userAdmin: Party --makes sure that issuer and owner are legit
issued: Time
newOwner: Party
price: Decimal
lastPrice: Decimal
currency: Text
royaltyRate: Decimal
where
signatory issuer, userAdmin, owner
key (issuer, owner, description ): (Party, Party, Text)
maintainer key._2
choice AcceptToken: (ContractId Token, ContractId Payable, ContractId Payable)
controller newOwner, userAdmin
do
fromNewOwnerToOwner <- create Payable
with
from = newOwner
to = owner
amount = price
currency
reference = "Notional for `"<> description <> "`."
royaltyPayment <- create Payable
with
from = newOwner
to = issuer
amount = price * royaltyRate
currency
reference = "Royalty for`" <> description <> "`."
newToken <- create Token
with
owner = newOwner
lastPrice = price
..
return (newToken, fromNewOwnerToOwner, royaltyPayment) ```