Skip to content

Commit

Permalink
chore(wasm-builder): refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ecol-master committed Jan 31, 2025
1 parent 1f394a3 commit 81c96ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/wasm-builder/src/code_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ impl CodeValidator {
let schedule = Schedule::default();
match Code::try_new(
self.code,
1,
|_| CustomConstantCostRules::default(),
schedule.instruction_weights.version,
|module| schedule.rules(module),
schedule.limits.stack_height,
Some(schedule.limits.data_segments_amount),
Some(schedule.limits.table_number),
schedule.limits.data_segments_amount.into(),
schedule.limits.table_number.into(),
) {
Err(code_error) => Err(CodeErrorWithContext::from((self.module, code_error)))?,
_ => Ok(()),
Expand Down

0 comments on commit 81c96ac

Please sign in to comment.