Skip to content

Commit f7f4ffe

Browse files
carbolymerCopilot
andauthored
TOSQUASH: cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Rpc/SearchUtxos.hs
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent f0b93f1 commit f7f4ffe

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

  • cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Rpc

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Rpc/SearchUtxos.hs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,13 @@ hprop_rpc_search_utxos = integrationRetryWorkspace 2 "rpc-search-utxos" $ \tempA
149149
-- Test 2: exact address + payment credential predicate
150150
-------------------------------------------
151151
H.note_ "Test 2: Verify exact address + payment credential predicate matches same UTxOs"
152-
let paymentCredBytes :: ByteString
153-
paymentCredBytes = case address1 of
154-
AddressInEra ShelleyAddressInEra{} (ShelleyAddress _ payCred _) ->
155-
serialisePaymentCredential $ fromShelleyPaymentCredential payCred
156-
_ -> error "Expected a Shelley address"
157-
paymentPredicate :: Proto UtxoRpc.UtxoPredicate
152+
paymentCredBytes <- case address1 of
153+
AddressInEra ShelleyAddressInEra{} (ShelleyAddress _ payCred _) ->
154+
pure $ serialisePaymentCredential $ fromShelleyPaymentCredential payCred
155+
_ -> do
156+
H.note_ "Expected a Shelley address"
157+
H.failure
158+
let paymentPredicate :: Proto UtxoRpc.UtxoPredicate
158159
paymentPredicate =
159160
def
160161
& U5c.match

0 commit comments

Comments
 (0)