Skip to content

Commit

Permalink
Fixed regdeleg cert deposit calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Soupstraw committed Oct 4, 2024
1 parent 1d1dce2 commit 897b8d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Ledger/Conway/Conformance/Utxo.agda
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ instance

certDepositUtxo : DCert PParams DepositPurpose ⇀ Coin
certDepositUtxo (regpool kh _) pp = ❴ PoolDeposit kh , pp .poolDeposit ❵
-- This is how RegDeleg certificates are translated in conformance testing
certDepositUtxo (delegate c nothing nothing v) pp = ❴ CredentialDeposit c , pp .keyDeposit ❵
certDepositUtxo _ _ =
-- -- Handle the following two cases in Certs.Haskell module:
-- certDeposit (delegate c _ _ v) _ = ❴ CredentialDeposit c , v ❵
Expand Down

0 comments on commit 897b8d8

Please sign in to comment.