From 99071fa6713f60166e7872df77dd4fd953f4975b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cmeeragjoshi=E2=80=9D?= <112877973+mgjoshi5@users.noreply.github.com> Date: Wed, 27 Sep 2023 10:49:08 -0500 Subject: [PATCH] await get coin record --- chia/rpc/full_node_rpc_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chia/rpc/full_node_rpc_api.py b/chia/rpc/full_node_rpc_api.py index 2e63f8855925..521534cce6ca 100644 --- a/chia/rpc/full_node_rpc_api.py +++ b/chia/rpc/full_node_rpc_api.py @@ -974,7 +974,9 @@ async def get_singleton_addition(self, parent_spend: CoinSpend) -> Optional[Coin if len(filtered_additions) != 1: raise ValueError(f"Invalid singleton no single odd child coin.") - return self.service.blockchain.coin_store.get_coin_record(filtered_additions[0].name()) + coin_record: Optional[CoinRecord] = await self.service.blockchain.coin_store.get_coin_record(filtered_additions[0].name()) + + return coin_record async def get_singleton_by_launcher_id(self, request: Dict[str, Any]) -> EndpointResult: if "launcher_id" not in request: