Skip to content

Commit 62400d6

Browse files
committed
Fix the mock
1 parent 3cbea35 commit 62400d6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

chia/_tests/cmds/wallet/test_wallet.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
CATSpendResponse,
4747
CreateOfferForIDsResponse,
4848
DeleteUnconfirmedTransactions,
49+
ExtendDerivationIndex,
50+
ExtendDerivationIndexResponse,
4951
FungibleAsset,
5052
GetCurrentDerivationIndexResponse,
5153
GetHeightInfoResponse,
@@ -645,9 +647,9 @@ def test_update_derivation_index(capsys: object, get_test_cli_clients: tuple[Tes
645647

646648
# set RPC Client
647649
class UpdateDerivationIndexRpcClient(TestWalletRpcClient):
648-
async def extend_derivation_index(self, index: int) -> str:
649-
self.add_to_log("extend_derivation_index", (index,))
650-
return str(index)
650+
async def extend_derivation_index(self, request: ExtendDerivationIndex) -> ExtendDerivationIndexResponse:
651+
self.add_to_log("extend_derivation_index", (request.index,))
652+
return ExtendDerivationIndexResponse(request.index)
651653

652654
inst_rpc_client = UpdateDerivationIndexRpcClient()
653655
test_rpc_clients.wallet_rpc_client = inst_rpc_client

0 commit comments

Comments
 (0)