Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

fix: contract class version mismatch format #2068

Closed
wants to merge 1 commit into from

Conversation

AvivYossef-starkware
Copy link
Collaborator

@AvivYossef-starkware AvivYossef-starkware commented Jul 10, 2024

Copy link
Collaborator

@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.

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


crates/blockifier/src/transaction/errors.rs line 56 at r1 (raw file):

         version {cairo_version:?}.", **declare_version
    )]
    ContractClassVersionMismatch { declare_version: TransactionVersion, cairo_version: u64 },

why is this a u64 and not a CairoVersion enum instance?

Code quote:

cairo_version: u64

Copy link
Collaborator Author

@AvivYossef-starkware AvivYossef-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: 1 of 4 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/blockifier/src/transaction/errors.rs line 56 at r1 (raw file):

Previously, dorimedini-starkware wrote…

why is this a u64 and not a CairoVersion enum instance?

good question it was u64 before

Copy link
Collaborator Author

@AvivYossef-starkware AvivYossef-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: 1 of 4 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/blockifier/src/transaction/errors.rs line 56 at r1 (raw file):

Previously, AvivYossef-starkware wrote…

good question it was u64 before

Okay, it's because this enum in a test utils and cannot be compile in a non-test module. Should I move the enum to a diff module or keep it u64?

Copy link
Collaborator

@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.

Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware)


crates/blockifier/src/transaction/errors.rs line 56 at r1 (raw file):

Previously, AvivYossef-starkware wrote…

Okay, it's because this enum in a test utils and cannot be compile in a non-test module. Should I move the enum to a diff module or keep it u64?

hmm... keep it u64 but please add a TODO to move the def to a non-test area

@AvivYossef-starkware
Copy link
Collaborator Author

Closing pull request: commit has gone away

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.

2 participants