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

L1HandlerTransaction::create_for_testing should not be part of any non test binary #1736

Open
tdelabro opened this issue Mar 29, 2024 · 1 comment

Comments

@tdelabro
Copy link
Contributor

This is a test-only function. It should be behind a #[cfg(test] flag. Or if you want to have it available for other crates while testing, you may want to create a testing feature. But regular lib users, building regular production code, should not be exposed to this method.

@tdelabro
Copy link
Contributor Author

A lot of other types have a similar method, but are implemented under crates/blockifier/src/test_utils/struct_impls.rs which is behind this flag #[cfg(any(feature = "testing", test))]. That's indeed the correct way to do it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant