[LABS-160] Fix bulk minting endpoint to work properly on testnet (#20254)

Fix bulk minting endpoint to work properly on testnet
This commit is contained in:
Matt Hauff
2025-11-15 10:51:26 -08:00
committed by GitHub
parent 3cf5058793
commit 25501d67eb
+1 -1
View File
@@ -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)