Skip to content

Conversation

@dorimedini-starkware
Copy link
Collaborator

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@github-actions
Copy link

github-actions bot commented Jun 27, 2025

@dorimedini-starkware dorimedini-starkware self-assigned this Jun 27, 2025
@dorimedini-starkware dorimedini-starkware marked this pull request as ready for review June 27, 2025 10:54
@dorimedini-starkware dorimedini-starkware force-pushed the 06-27-blockifier_box_validatetransactionerror_in_transactionexecutionerror branch from e64172f to e275910 Compare June 30, 2025 11:23
@dorimedini-starkware dorimedini-starkware force-pushed the 06-27-blockifier_box_transactionfeeerror_in_transactionprevalidationerror branch from 079d3a4 to 6786b24 Compare June 30, 2025 11:23
@dorimedini-starkware dorimedini-starkware force-pushed the 06-27-blockifier_box_validatetransactionerror_in_transactionexecutionerror branch from e275910 to 04e09a6 Compare June 30, 2025 12:14
@dorimedini-starkware dorimedini-starkware force-pushed the 06-27-blockifier_box_transactionfeeerror_in_transactionprevalidationerror branch from 6786b24 to 0b1815b Compare June 30, 2025 12:14
Copy link
Collaborator Author

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 5 files reviewed, all discussions resolved (waiting on @amosStarkware)


crates/apollo_gateway/src/stateful_transaction_validator_test.rs line 56 at r1 (raw file):

            },
        ),
    );
  1. only used once (inlined below)
  2. Box fields can't be const

Code quote:

pub const STATEFUL_VALIDATOR_FEE_ERROR: BlockifierStatefulValidatorError =
    BlockifierStatefulValidatorError::TransactionPreValidationError(
        TransactionPreValidationError::TransactionFeeError(
            TransactionFeeError::GasBoundsExceedBalance {
                resource: Resource::L1DataGas,
                max_amount: GasAmount(VALID_L1_GAS_MAX_AMOUNT),
                max_price: GasPrice(VALID_L1_GAS_MAX_PRICE_PER_UNIT),
                balance: BigUint::ZERO,
            },
        ),
    );

Copy link
Collaborator

@amosStarkware amosStarkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/blockifier/src/transaction/execution_flavors_test.rs line 283 at r1 (raw file):

            err,
            TransactionExecutionError::TransactionPreValidationError(boxed_error)
            => assert_matches!(

There's no difference between an assert_matches! and a guard expression here?

Code quote:

 => assert_matches!(

Copy link
Collaborator Author

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @amosStarkware)


crates/blockifier/src/transaction/execution_flavors_test.rs line 283 at r1 (raw file):

Previously, amosStarkware wrote…

There's no difference between an assert_matches! and a guard expression here?

not sure what you mean
if you're asking why can't i do

if matches!(
    x,
    Y::(boxed_y),
    if matches!(
        *boxed_y,
        Z::ZY(y),
        if y == expected_y
    )
)

it's because rust complained about ownership; I think moving boxed_y into the inner matches! violates ownership rules

Copy link
Collaborator

@amosStarkware amosStarkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)

@dorimedini-starkware dorimedini-starkware changed the base branch from 06-27-blockifier_box_validatetransactionerror_in_transactionexecutionerror to main July 1, 2025 10:25
@dorimedini-starkware dorimedini-starkware force-pushed the 06-27-blockifier_box_transactionfeeerror_in_transactionprevalidationerror branch from 0b1815b to e830c2e Compare July 1, 2025 10:25
@graphite-app
Copy link

graphite-app bot commented Jul 1, 2025

Merge activity

  • Jul 1, 10:26 AM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.

@dorimedini-starkware dorimedini-starkware added this pull request to the merge queue Jul 1, 2025
Merged via the queue into main with commit f626705 Jul 1, 2025
18 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants