我正在使用类似的设置编写多个场景:
test0 = scenario do
bank <- getParty "Bank"
alice <- getParty "Alice"
-- ....
assert True
test1 = scenario do
bank <- getParty "Bank"
alice <- getParty "Alice"
-- ...
assert True
linter 建议我减少重复:
/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
如何从场景中提取设置?