Skip to content

Commit

Permalink
Use getKeyDeposit instead of hard-coded 0
Browse files Browse the repository at this point in the history
  • Loading branch information
palas committed Jan 8, 2025
1 parent 718f611 commit 42e718e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
]

Expand Down

0 comments on commit 42e718e

Please sign in to comment.