I’ve got {-# LANGUAGE ApplicativeDo #-}
at the top of my file. In a script i have
submit issuer do
exerciseCmd eqA_Alice Airdrop with
quantity = 1000.0
reference = None
exerciseCmd eqB_Alice Airdrop with
quantity = 1000.0
reference = None
The first exerciseCmd is underlined with error
• No instance for (Action Commands) arising from a do statement
• In a stmt of a 'do' block:
exerciseCmd eqA_Alice Airdrop {quantity = 1000.0, reference = None}
In the second argument of ‘submit’, namely
‘do exerciseCmd
eqA_Alice Airdrop {quantity = 1000.0, reference = None}
exerciseCmd
eqB_Alice Airdrop {quantity = 1000.0, reference = None}’
In a stmt of a 'do' block:
_ <- submit
issuer
do exerciseCmd
eqA_Alice Airdrop {quantity = 1000.0, reference = None}
exerciseCmd eqB_Alice Airdrop {quantity = 1000.0, reference = None}typecheck
What am I doing wrong?