-
Notifications
You must be signed in to change notification settings - Fork 107
fix: contract class version mismatch format #2068
Conversation
There was a problem hiding this 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
commit-id:0f0f8dff
7b10c29
to
23a4c77
Compare
There was a problem hiding this 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 aCairoVersion
enum instance?
good question it was u64 before
There was a problem hiding this 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?
There was a problem hiding this 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
Closing pull request: commit has gone away |
Stack:
This change is