Skip to content

Commit

Permalink
address comments by @altendky
Browse files Browse the repository at this point in the history
  • Loading branch information
Quexington committed Dec 11, 2024
1 parent 284e305 commit 841ec8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion chia/_tests/cmds/wallet/test_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def vc_mint(
timelock_info: ConditionValidTimes = ConditionValidTimes(),
) -> VCMintResponse:
self.add_to_log(
"vc_mint", (did_id, tx_config, request.target_address, request.fee, request.push, timelock_info)
"vc_mint", (request.did_id, tx_config, request.target_address, request.fee, request.push, timelock_info)
)

return VCMintResponse(
Expand Down
14 changes: 7 additions & 7 deletions chia/rpc/wallet_rpc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1677,15 +1677,15 @@ async def vc_mint(
) -> VCMintResponse:
return VCMintResponse.from_json_dict(
await self.fetch(
"vc_mint", {**request.json_serialize_for_transport(tx_config, extra_conditions, timelock_info)}
"vc_mint", request.json_serialize_for_transport(tx_config, extra_conditions, timelock_info)
)
)

async def vc_get(self, request: VCGet) -> VCGetResponse:
return VCGetResponse.from_json_dict(await self.fetch("vc_get", {**request.to_json_dict()}))
return VCGetResponse.from_json_dict(await self.fetch("vc_get", request.to_json_dict()))

async def vc_get_list(self, request: VCGetList) -> VCGetListResponse:
return VCGetListResponse.from_json_dict(await self.fetch("vc_get_list", {**request.to_json_dict()}))
return VCGetListResponse.from_json_dict(await self.fetch("vc_get_list", request.to_json_dict()))

async def vc_spend(
self,
Expand All @@ -1696,16 +1696,16 @@ async def vc_spend(
) -> VCSpendResponse:
return VCSpendResponse.from_json_dict(
await self.fetch(
"vc_spend", {**request.json_serialize_for_transport(tx_config, extra_conditions, timelock_info)}
"vc_spend", request.json_serialize_for_transport(tx_config, extra_conditions, timelock_info)
)
)

async def vc_add_proofs(self, request: VCAddProofs) -> None:
await self.fetch("vc_add_proofs", {**request.to_json_dict()})
await self.fetch("vc_add_proofs", request.to_json_dict())

async def vc_get_proofs_for_root(self, request: VCGetProofsForRoot) -> VCGetProofsForRootResponse:
return VCGetProofsForRootResponse.from_json_dict(
await self.fetch("vc_get_proofs_for_root", {**request.to_json_dict()})
await self.fetch("vc_get_proofs_for_root", request.to_json_dict())
)

async def vc_revoke(
Expand All @@ -1717,7 +1717,7 @@ async def vc_revoke(
) -> VCRevokeResponse:
return VCRevokeResponse.from_json_dict(
await self.fetch(
"vc_revoke", {**request.json_serialize_for_transport(tx_config, extra_conditions, timelock_info)}
"vc_revoke", request.json_serialize_for_transport(tx_config, extra_conditions, timelock_info)
)
)

Expand Down

0 comments on commit 841ec8e

Please sign in to comment.