Skip to content

Emulator does not account for registration deposits when balancing transactions #18

@fallen-icarus

Description

@fallen-icarus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions