File tree Expand file tree Collapse file tree
cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313import Cardano.Api hiding (txId )
1414import qualified Cardano.Api.Ledger as L
1515import qualified Cardano.Api.Network as Net
16- import qualified Cardano.Api.Network as Net.Tx
1716import qualified Cardano.Api.UTxO as Utxo
1817
1918import Cardano.Testnet
@@ -298,8 +297,9 @@ submitTx
298297submitTx sbe connectionInfo tx =
299298 withFrozenCallStack $
300299 H. evalIO (submitTxToNodeLocal connectionInfo (TxInMode sbe tx)) >>= \ case
301- Net.Tx. SubmitFail reason -> pure . Left $ reason
302- Net.Tx. SubmitSuccess -> pure $ Right ()
300+ TxSubmitFail reason -> pure . Left $ reason
301+ TxSubmitSuccess -> pure $ Right ()
302+ TxSubmitError err -> error $ " submitTxToNodeLocal connection error: " <> show err
303303
304304
305305expectTxSubmissionSuccess :: HasCallStack
You can’t perform that action at this time.
0 commit comments