Skip to content

Commit

Permalink
Rename the reward redeemer tag to withdrawal (Python-Cardano#312)
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
nielstron authored Feb 20, 2024
1 parent b2d74cc commit 4b1c1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycardano/plutus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b1c1d4

Please sign in to comment.