Skip to content

Commit 76dd3e2

Browse files
committed
TransactionEndpointRequest misses
1 parent cca14fa commit 76dd3e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chia/cmds/wallet_funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ async def take_offer(
893893
print()
894894
cli_confirm("Would you like to take this offer? (y/n): ")
895895
res = await wallet_client.take_offer(
896-
TakeOffer(offer.to_bech32(), fee=fee, push=push),
896+
TakeOffer(offer=offer.to_bech32(), fee=fee, push=push),
897897
timelock_info=condition_valid_times,
898898
tx_config=CMDTXConfigLoader().to_tx_config(units["chia"], config, fingerprint),
899899
)

chia/wallet/wallet_request_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1941,7 +1941,7 @@ class CreateOfferForIDsResponse(_OfferEndpointResponse):
19411941
@streamable
19421942
@dataclass(frozen=True)
19431943
class TakeOffer(TransactionEndpointRequest):
1944-
offer: str
1944+
offer: str = field(default_factory=default_raise)
19451945
solver: Optional[Solver] = None
19461946

19471947
@cached_property

0 commit comments

Comments
 (0)