fix some typos
This commit is contained in:
@@ -362,7 +362,7 @@ impl Machine {
|
||||
let mut unspent_step_budget =
|
||||
self.costs.machine_costs.get(StepKind::try_from(i as u8)?);
|
||||
|
||||
unspent_step_budget.occurences(self.unbudgeted_steps[i] as i64);
|
||||
unspent_step_budget.occurrences(self.unbudgeted_steps[i] as i64);
|
||||
|
||||
self.spend_budget(unspent_step_budget)?;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ pub struct ExBudget {
|
||||
}
|
||||
|
||||
impl ExBudget {
|
||||
pub fn occurences(&mut self, n: i64) {
|
||||
pub fn occurrences(&mut self, n: i64) {
|
||||
self.mem *= n;
|
||||
self.cpu *= n;
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ pub fn eval_phase_two(
|
||||
&remaining_budget,
|
||||
)?;
|
||||
|
||||
// The substraction is safe here as ex units counting is done during evaluation.
|
||||
// The subtraction is safe here as ex units counting is done during evaluation.
|
||||
// Redeemer would fail already if budget was negative.
|
||||
remaining_budget.cpu -= redeemer.ex_units.steps as i64;
|
||||
remaining_budget.mem -= redeemer.ex_units.mem as i64;
|
||||
|
||||
Reference in New Issue
Block a user