-
Notifications
You must be signed in to change notification settings - Fork 108
Conversation
275f1a1
to
0e19c7f
Compare
Codecov Report
@@ Coverage Diff @@
## main #972 +/- ##
=======================================
Coverage 68.40% 68.40%
=======================================
Files 47 47
Lines 6024 6024
Branches 6024 6024
=======================================
Hits 4121 4121
Misses 1528 1528
Partials 375 375 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @zuphitf)
crates/blockifier/src/test_utils.rs
line 294 at r1 (raw file):
((pair_address, reserve0_address), stark_felt!(RESERVE_0)), ((pair_address, reserve1_address), stark_felt!(RESERVE_1)), ]);
Please put this logic in a different state init function, it is not relevant for all tests... the address => class_hash mapping is fine, but this logic is a bit out of context here
pub fn deprecated_create_test_state_for_oracle_test() -> ... {
let mut state = deprecated_create_test_state();
...
}
Code quote:
// Override the pair's reserves data, since the constructor is not called.
let pair_address = contract_address!(TEST_PAIR_SKELETON_CONTRACT_ADDRESS1);
let reserve0_address = get_storage_var_address("_reserve0", &[]);
let reserve1_address = get_storage_var_address("_reserve1", &[]);
let storage_view = HashMap::from([
((pair_address, reserve0_address), stark_felt!(RESERVE_0)),
((pair_address, reserve1_address), stark_felt!(RESERVE_1)),
]);
0e19c7f
to
e679f5a
Compare
Previously, dorimedini-starkware wrote…
Moved to subfunctions like we discussed |
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 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @zuphitf)
This change is