I'm writing multiple scenarios, with a similar setup:
test0 = scenario do
bank <- getParty "Bank"
alice <- getParty "Alice"
-- ....
assert True
test1 = scenario do
bank <- getParty "Bank"
alice <- getParty "Alice"
-- ...
assert True
The linter is suggesting I reduce duplication:
/Foo.daml:5:3: Suggestion: Reduce duplication
Found:
bank <- getParty "Bank"
alice <- getParty "Alice"
assert True
Perhaps:
Combine with /Users/shaynefletcher/Foo.daml:11:3
How can I extract the setup from the scenario?