Skip to content

Commit

Permalink
PLT-4169 Fixed example call to rolePayoutValidator.
Browse files Browse the repository at this point in the history
This addresses the following audit finding:

> File marlowe-cardano-specification.md, Section Plutus Validator
> for Marlowe Payouts The type signature of rolePayoutValidator
> is missing the datum argument. It should be: rolePayoutValidator
> :: CurrencySymbol -> TokenName -> () -> ScriptContext -> Bool
  • Loading branch information
bwbush committed Mar 15, 2023
1 parent 8f8183d commit 1d16de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marlowe/specification/marlowe-cardano-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ rolePayoutValidator :: (CurrencySymbol, TokenName) -> () -> ScriptContext -> Boo

Consider the application of the Marlowe payout validator:
```haskell
validationResult' = rolePayoutValidator rolesCurrency' role () scriptContext
validationResult' = rolePayoutValidator (rolesCurrency', role) () scriptContext
```

The validation fails (via returning `False` for `validationResult'` or via the throwing of an error) if any of the following constraints does not hold.
Expand Down

0 comments on commit 1d16de1

Please sign in to comment.