From 42e718e2c864976a72a4a9fe65aff9120d725163 Mon Sep 17 00:00:00 2001 From: Pablo Lamela Date: Fri, 15 Nov 2024 12:38:20 +0100 Subject: [PATCH] Use `getKeyDeposit` instead of hard-coded `0` --- .../Cardano/Testnet/Test/Gov/Transaction/HashMismatch.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/Transaction/HashMismatch.hs b/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/Transaction/HashMismatch.hs index 76dbef6bd28..09684a1db8a 100644 --- a/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/Transaction/HashMismatch.hs +++ b/cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Gov/Transaction/HashMismatch.hs @@ -10,6 +10,7 @@ module Cardano.Testnet.Test.Gov.Transaction.HashMismatch ) where import Cardano.Api as Api +import Cardano.Api.Ledger (Coin (unCoin)) import Cardano.Testnet @@ -93,11 +94,12 @@ hprop_transaction_build_wrong_hash = integrationRetryWorkspace 2 "wrong-hash" $ cliStakeAddressKeyGen stakeKeys -- Register stake address + keyDeposit <- getKeyDeposit epochStateView ceo void $ execCli' execConfig [ eraName, "stake-address", "registration-certificate" , "--stake-verification-key-file", stakeVkeyFp - , "--key-reg-deposit-amt", show @Int 0 -- TODO: why this needs to be 0???? + , "--key-reg-deposit-amt", show $ unCoin keyDeposit , "--out-file", stakeCertFp ]