From 609d07d7d1c9927aac51c9994d24a94f6456a30b Mon Sep 17 00:00:00 2001 From: Maximilian Algehed Date: Tue, 8 Mar 2022 10:58:53 +0100 Subject: [PATCH] more helpful error message --- .../src/Plutus/Contract/Test/ContractModel/Internal.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plutus-contract/src/Plutus/Contract/Test/ContractModel/Internal.hs b/plutus-contract/src/Plutus/Contract/Test/ContractModel/Internal.hs index 15db6ff750..97941d5bb5 100644 --- a/plutus-contract/src/Plutus/Contract/Test/ContractModel/Internal.hs +++ b/plutus-contract/src/Plutus/Contract/Test/ContractModel/Internal.hs @@ -1581,7 +1581,7 @@ checkBalances s envOuter = Map.foldrWithKey (\ w sval p -> walletFundsChange w s tokenMap <- Map.lookup innerVar envInner Map.lookup idx tokenMap lookup st = case lookupMaybe st of - Nothing -> error $ "Trying to look up unknown symbolic token: " ++ show st ++ ",\ndid you forget to check that tokens exist in your preconditions?" + Nothing -> error $ "Trying to look up unknown symbolic token: " ++ show st ++ ",\nare you using a custom implementation of getAllSymtokens? If not, please report this as a bug." Just tok -> tok dlt = toValue lookup sval initialValue = fold (dist ^. at w)