File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -301,8 +301,15 @@ writeBalancedTx contractEnv (Right tx) = do
301301
302302 collectBudgetStats txId pabConf = do
303303 let path = Text. unpack (Files. txFilePath pabConf " signed" (Tx. txId tx))
304- b <- firstEitherT (Text. pack . show ) $ newEitherT $ estimateBudget @ w (Signed path)
305- void $ newEitherT (Right <$> saveBudget @ w txId b)
304+ txBudget <-
305+ firstEitherT toBudgetSaveError $
306+ newEitherT $ estimateBudget @ w (Signed path)
307+ void $ newEitherT (Right <$> saveBudget @ w txId txBudget)
308+
309+ toBudgetSaveError =
310+ Text. pack
311+ . (" Failed to save Tx budgets statistics: " ++ )
312+ . show
306313
307314pkhToText :: Ledger. PubKey -> Text
308315pkhToText = encodeByteString . fromBuiltin . Ledger. getPubKeyHash . Ledger. pubKeyHash
You can’t perform that action at this time.
0 commit comments