Skip to content

Commit

Permalink
use more descriptive names
Browse files Browse the repository at this point in the history
  • Loading branch information
Quexington committed Nov 7, 2024
1 parent a01f3e8 commit 1ae4318
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chia/rpc/wallet_rpc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2086,11 +2086,11 @@ async def create_offer_for_ids(
driver_dict[bytes32.from_hexstr(key)] = PuzzleInfo(value)

modified_offer: dict[Union[int, bytes32], int] = {}
for key, val in offer.items():
for wallet_identifier, change in offer.items():
try:
modified_offer[bytes32.from_hexstr(key)] = val
modified_offer[bytes32.from_hexstr(wallet_identifier)] = change
except ValueError:
modified_offer[int(key)] = val
modified_offer[int(wallet_identifier)] = change

async with self.service.wallet_state_manager.lock:
result = await self.service.wallet_state_manager.trade_manager.create_offer_for_ids(
Expand Down

0 comments on commit 1ae4318

Please sign in to comment.