You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ValidationErrorInMode constructor is only used in the MonadBlockchain instance for MonadBlockchainCardanoNodeT. The other constructors are only used in the MockchainT instance. This means that
Clients can discover which implementation is used (breaking the MonadBlockchain abstraction)
Clients need to handle the same error in two different ways - once for the ValidationErrorInMode constructor, and then also for the other three constructors
To fix this we need to inspect the TxValidationErrorInCardanoMode that's returned from the node (MonadBlockchainCardanoNodeT) and try to extract the underlying reason.
The text was updated successfully, but these errors were encountered:
MonadBlockchain.sendTx
returns anEither (ValidationError era) TxId
.ValidationError
looks like this:The
ValidationErrorInMode
constructor is only used in theMonadBlockchain
instance forMonadBlockchainCardanoNodeT
. The other constructors are only used in theMockchainT
instance. This means thatMonadBlockchain
abstraction)ValidationErrorInMode
constructor, and then also for the other three constructorsTo fix this we need to inspect the
TxValidationErrorInCardanoMode
that's returned from the node (MonadBlockchainCardanoNodeT
) and try to extract the underlying reason.The text was updated successfully, but these errors were encountered: