From 0d22dad809657d09d9db65042f19609fbc7ae523 Mon Sep 17 00:00:00 2001 From: Ziyang Liu Date: Tue, 5 Nov 2024 06:02:09 -0800 Subject: [PATCH] Fix incorrect `fromDistinctAscList` in PlutusTx.ErrorCodes (#6635) --- plutus-tx/src/PlutusTx/ErrorCodes.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plutus-tx/src/PlutusTx/ErrorCodes.hs b/plutus-tx/src/PlutusTx/ErrorCodes.hs index a04cb550f1c..0ab7af0a3c8 100644 --- a/plutus-tx/src/PlutusTx/ErrorCodes.hs +++ b/plutus-tx/src/PlutusTx/ErrorCodes.hs @@ -35,7 +35,7 @@ When writing a new error description please follow existing patterns: -- | All error codes used in the plutus prelude associated with a human-readable description. plutusPreludeErrorCodes :: Map Builtins.BuiltinString String -plutusPreludeErrorCodes = Map.fromDistinctAscList +plutusPreludeErrorCodes = Map.fromList [ ("PT1", "TH Generation of Indexed Data Error") , ("PT2", "PlutusTx.IsData.Class.unsafeFromBuiltinData: Void is not supported") , ("PT3", "PlutusTx.Ratio: zero denominator")