From 4b1c1d4799fd72952501031e04eb9ee41a754910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=BCndler?= Date: Tue, 20 Feb 2024 17:02:50 +0100 Subject: [PATCH] Rename the reward redeemer tag to withdrawal (#312) Ogmios 5 and blockfrost both refer to script redeemers that use the withdrawal redeemer as "withdrawal:{index}". The only place where the name of the redeemer tag is used is for evaluating the execution steps in the transaction builder. Therefore I recommend renaming the redeemer tag to the name used by other cardano tooling. Note that in Ogmios 6, this name changes to "withdraw" --- pycardano/plutus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycardano/plutus.py b/pycardano/plutus.py index 72d5645b..56d7342a 100644 --- a/pycardano/plutus.py +++ b/pycardano/plutus.py @@ -932,7 +932,7 @@ class RedeemerTag(CBORSerializable, Enum): SPEND = 0 MINT = 1 CERT = 2 - REWARD = 3 + WITHDRAWAL = 3 def to_primitive(self) -> int: return self.value