Skip to content

Commit

Permalink
remove get_puzzle entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
Quexington committed Dec 3, 2024
1 parent 7a5d5c2 commit c77f4ad
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions chia/wallet/did_wallet/did_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,18 +553,6 @@ def puzzle_hash_for_pk(self, pubkey: G1Element) -> bytes32:
)
return create_singleton_puzzle_hash(innerpuz_hash, origin_coin_name)

async def get_puzzle(self, new: bool) -> Program:
if new:
derivation_record = await self.wallet_state_manager.get_unused_derivation_record(self.wallet_info.id)
else:
derivation_record = await self.wallet_state_manager.get_current_derivation_record_for_wallet(
self.wallet_info.id
)
if derivation_record is None:
derivation_record = await self.wallet_state_manager.get_unused_derivation_record(self.wallet_info.id)

return self.puzzle_for_pk(derivation_record.pubkey)

def get_my_DID(self) -> str:
assert self.did_info.origin_coin is not None
core = self.did_info.origin_coin.name()
Expand Down

0 comments on commit c77f4ad

Please sign in to comment.