Skip to content

Commit

Permalink
re-enable post validation
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Aug 29, 2024
1 parent 19b99d3 commit 08ac6f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/blockifier/src/blockifier/stateful_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ use crate::blockifier::transaction_executor::{
use crate::context::{BlockContext, TransactionContext};
use crate::execution::call_info::CallInfo;
use crate::fee::actual_cost::TransactionReceipt;
// use crate::fee::fee_checks::PostValidationReport;
use crate::fee::fee_checks::PostValidationReport;
use crate::state::cached_state::CachedState;
use crate::state::errors::StateError;
use crate::state::state_api::{State, StateReader};
use crate::transaction::account_transaction::AccountTransaction;
use crate::transaction::errors::{TransactionExecutionError, TransactionPreValidationError};
use crate::transaction::objects::TransactionInfo;
use crate::transaction::objects::{TransactionExecutionResult, TransactionInfo};
use crate::transaction::transaction_execution::Transaction;
use crate::transaction::transactions::ValidatableTransaction;

Expand Down Expand Up @@ -102,11 +102,11 @@ impl<S: StateReader> StatefulValidator<S> {
if !skip_validate {
// `__validate__` call.
let versioned_constants = &tx_context.block_context.versioned_constants();
let (_optional_call_info, _actual_cost) =
let (_optional_call_info, actual_cost) =
self.validate(&tx, versioned_constants.tx_initial_gas())?;

// Post validations.
// PostValidationReport::verify(&tx_context, &actual_cost)?;
PostValidationReport::verify(&tx_context, &actual_cost)?;
}

// See similar comment in `run_revertible` for context.
Expand Down

0 comments on commit 08ac6f3

Please sign in to comment.