Skip to content

Commit 7afed68

Browse files
authored
fix(ledger): consume deposits from drep registration in conway (#989)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 7e5efe0 commit 7afed68

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
@@ -279,6 +279,8 @@ func UtxoValidateValueNotConservedUtxo(
279279
}
280280
case *common.RegistrationCertificate:
281281
producedValue += uint64(tmpPparams.KeyDeposit)
282+
case *common.RegistrationDrepCertificate:
283+
producedValue += uint64(tmpPparams.DRepDeposit)
282284
case *common.StakeRegistrationCertificate:
283285
producedValue += uint64(tmpPparams.KeyDeposit)
284286
}

0 commit comments

Comments
 (0)