Skip to content

Commit 460d8ff

Browse files
committed
Default initialize the tag to SPEND
TODO I would rather set it to None, so that we catch situations where it is incorrectly initialized
1 parent afd8c6f commit 460d8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycardano/plutus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ def __add__(self, other: ExecutionUnits) -> ExecutionUnits:
697697

698698
@dataclass(repr=False)
699699
class Redeemer(ArrayCBORSerializable):
700-
tag: RedeemerTag = field(default=None, init=False)
700+
tag: RedeemerTag = field(default=RedeemerTag.SPEND, init=False)
701701

702702
index: int = field(default=0, init=False)
703703

0 commit comments

Comments
 (0)