Skip to content

Commit d6f3ddb

Browse files
authored
fix(ledger): return deposits from drep registration on retire in conway (#995)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 194a33b commit d6f3ddb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ledger/conway/rules.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ func UtxoValidateValueNotConservedUtxo(
256256
switch cert.(type) {
257257
case *common.DeregistrationCertificate:
258258
consumedValue += uint64(tmpPparams.KeyDeposit)
259+
case *common.DeregistrationDrepCertificate:
260+
consumedValue += uint64(tmpPparams.DRepDeposit)
259261
case *common.StakeDeregistrationCertificate:
260262
consumedValue += uint64(tmpPparams.KeyDeposit)
261263
}

0 commit comments

Comments
 (0)