IntersectMBO / IntersectMBO/cardano-node-emulator
Emulator does not account for registration deposits when balancing transactions
- Dominant language
- Haskell
- Stars
- 7
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
When submitting an unbalanced transaction body using `submitTxConfirmed`, the resulting transaction does not account for delegation registration deposits. When submitting a transaction with a single registration certificate, the relevant prettyprinted logs are:
```
[WARNING] TxnValidation d481bd17ea46a66d02a1996e836ed9b183100b44fc0ae7ce7ccc294c5bf268e7
Validation failed in phase 1: CardanoLedgerValidationError "ApplyTxError [UtxowFailure (UtxoFailure (AlonzoInBabbageUtxoPredFailure (ValueNotConservedUTxO (MaryValue (Coin 100000000000000) (MultiAsset
(fromList []))) (MaryValue (Coin 100000002000000) (MultiAsset (fromList []))))))]"
```
The unbalanced ADA is exactly 2 ADA which is the required deposit fee. I need this registration to be successful so that I can test staking validators.
Contributor guide
Assessment
This issue has not been assessed yet.