Skip to content

Commit

Permalink
Bad property name
Browse files Browse the repository at this point in the history
  • Loading branch information
Quexington committed Nov 4, 2024
1 parent 87455c5 commit 882bbd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chia/rpc/wallet_request_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,14 +838,14 @@ def parse(cls, f: BinaryIO) -> TransactionRecordMetadata:
def to_json_dict(self) -> dict[str, Any]:
return {
**self.decorator_information,
"decorator_name": self.decorator_name.name,
"decorator": self.decorator_name.name,
}

@classmethod
def from_json_dict(cls, json_dict: dict[str, Any]) -> PuzzleDecoratorData:
return PuzzleDecoratorData(
decorator_name=PuzzleDecoratorType.__members__[json_dict["decorator_name"]],
decorator_information={k: v for k, v in json_dict.items() if k != "decorator_name"},
decorator_name=PuzzleDecoratorType.__members__[json_dict["decorator"]],
decorator_information={k: v for k, v in json_dict.items() if k != "decorator"},
)


Expand Down

0 comments on commit 882bbd6

Please sign in to comment.