We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b96d4e commit 9aa606dCopy full SHA for 9aa606d
src/BotPlutusInterface/ExBudget.hs
@@ -64,7 +64,11 @@ getScaledBudget :: CAPI.ExecutionUnits -> Rational -> ExUnitsMap -> Either Budge
64
getScaledBudget maxUnits scaler budget =
65
if fst scalers >= 1 && snd scalers >= 1
66
then Right $ fmap (fmap $ scaleBudget scalers) budget
67
- else Left $ BudgetEstimationError "Exceeded global transaction budget"
+ else
68
+ Left $
69
+ BudgetEstimationError $
70
+ Text.pack $
71
+ "Exceeded global transaction budget\nCalculated: " ++ show budgetSum ++ "\nLimit: " ++ show maxUnits
72
where
73
budgetSum = foldr addBudgets (CAPI.ExecutionUnits 0 0) $ rights $ Map.elems budget
74
scalers =
0 commit comments