Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAlgehed committed Oct 12, 2021
1 parent 6fd1690 commit eda9ac7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plutus-contract/src/Plutus/Contract/Test/ContractModel.hs
Expand Up @@ -146,7 +146,6 @@ import Plutus.Trace.Emulator as Trace (ContractHandle
EmulatorTrace, activateContract,
freezeContractInstance, walletInstanceTag)
import Plutus.V1.Ledger.Scripts
import qualified PlutusCore as PLC
import qualified PlutusTx.Builtins as Builtins
import PlutusTx.ErrorCodes
import PlutusTx.Monoid (inv)
Expand Down Expand Up @@ -1212,7 +1211,7 @@ checkErrorWhitelistWithOptions opts handleSpecs whitelist acts = property $ go c

checkEvent :: ScriptError -> Bool
checkEvent (EvaluationError log "CekEvaluationFailure") = listToMaybe (reverse log) `isAcceptedBy` whitelist
checkEvent (EvaluationError log msg) | "BuiltinEvaluationFailure" `isPrefixOf` msg = False
checkEvent (EvaluationError _ msg) | "BuiltinEvaluationFailure" `isPrefixOf` msg = False
checkEvent _ = False

checkEvents :: [ChainEvent] -> Bool
Expand Down

0 comments on commit eda9ac7

Please sign in to comment.