From 25501d67ebd8accdcb1c2fbbb123aa729f35e20c Mon Sep 17 00:00:00 2001 From: Matt Hauff Date: Sat, 15 Nov 2025 10:51:26 -0800 Subject: [PATCH] [LABS-160] Fix bulk minting endpoint to work properly on testnet (#20254) Fix bulk minting endpoint to work properly on testnet --- chia/wallet/wallet_rpc_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chia/wallet/wallet_rpc_api.py b/chia/wallet/wallet_rpc_api.py index 8e9b8b50fb..00b115e72c 100644 --- a/chia/wallet/wallet_rpc_api.py +++ b/chia/wallet/wallet_rpc_api.py @@ -3325,7 +3325,7 @@ class WalletRpcApi: metadata_list.append(metadata_dict) target_list = [decode_puzzle_hash(target) for target in request.target_list] if request.xch_change_target is not None: - if request.xch_change_target.startswith("xch"): + if request.xch_change_target.startswith(AddressType.XCH.hrp(self.service.config)): xch_change_ph = decode_puzzle_hash(request.xch_change_target) else: xch_change_ph = bytes32.from_hexstr(request.xch_change_target)