Skip to content

Commit

Permalink
await get coin record
Browse files Browse the repository at this point in the history
  • Loading branch information
meeragjoshi committed Sep 27, 2023
1 parent 14861b6 commit 99071fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chia/rpc/full_node_rpc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 99071fa

Please sign in to comment.