File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,9 @@ func UtxoValidateValueNotConservedUtxo(
254
254
}
255
255
for _ , cert := range tx .Certificates () {
256
256
switch cert .(type ) {
257
+ case * common.DeregistrationCertificate :
258
+ consumedValue += uint64 (tmpPparams .KeyDeposit )
259
+ }
257
260
case * common.StakeDeregistrationCertificate :
258
261
consumedValue += uint64 (tmpPparams .KeyDeposit )
259
262
}
@@ -275,6 +278,9 @@ func UtxoValidateValueNotConservedUtxo(
275
278
if len (certs ) == 0 {
276
279
producedValue += uint64 (tmpPparams .PoolDeposit )
277
280
}
281
+ case * common.RegistrationCertificate :
282
+ producedValue += uint64 (tmpPparams .KeyDeposit )
283
+ }
278
284
case * common .StakeRegistrationCertificate :
279
285
producedValue += uint64 (tmpPparams .KeyDeposit )
280
286
}
You can’t perform that action at this time.
0 commit comments