From 72046ae53d199e7848ec5e06f0e85309463a0613 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 30 Oct 2024 14:43:39 -0700 Subject: [PATCH] Add a duplication of TransactionRecord.get_memos() --- chia/rpc/wallet_request_types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chia/rpc/wallet_request_types.py b/chia/rpc/wallet_request_types.py index b3c8e0354ef8..129af48df59d 100644 --- a/chia/rpc/wallet_request_types.py +++ b/chia/rpc/wallet_request_types.py @@ -77,6 +77,9 @@ class UserFriendlyTransactionRecord(TransactionRecord): to_address: str memos: UserFriendlyMemos # type: ignore[assignment] + def get_memos(self) -> dict[bytes32, list[bytes]]: + return {coin_id: ms for coin_id, ms in self.memos.unfriendly_memos} + def to_transaction_record(self) -> TransactionRecord: return TransactionRecord.from_json_dict_convenience(self.to_json_dict())