File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
cardano-wasm/src-lib/Cardano/Wasm/Api Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import Cardano.Api.Plutus qualified as Shelley
3434import Cardano.Api.Tx qualified as TxBody
3535
3636import Cardano.Ledger.Api qualified as Ledger
37- import Cardano.Wasm.ExceptionHandling (justOrError , rightOrError , throwError , toMonadFail )
37+ import Cardano.Wasm.ExceptionHandling (justOrError , rightOrError , toMonadFail )
3838
3939import Control.Monad.Catch (MonadThrow )
4040import Data.Aeson (ToJSON (toJSON ), (.=) )
@@ -84,8 +84,9 @@ newTxImpl :: UnsignedTxObject
8484newTxImpl = newConwayTxImpl
8585
8686-- | Create a new unsigned transaction object for making a transaction in the current experimental era.
87- newExperimentalEraTxImpl :: (HasCallStack , MonadThrow m ) => m UnsignedTxObject
88- newExperimentalEraTxImpl = throwError " newExperimentalEraTxImpl: No experimental era available"
87+ newExperimentalEraTxImpl :: MonadThrow m => m UnsignedTxObject
88+ newExperimentalEraTxImpl =
89+ return $ UnsignedTxObject Exp. DijkstraEra (Exp. UnsignedTx (Ledger. mkBasicTx Ledger. mkBasicTxBody))
8990
9091-- | Create a new unsigned transaction object for making a Conway era transaction.
9192newConwayTxImpl :: UnsignedTxObject
You can’t perform that action at this time.
0 commit comments