-
Notifications
You must be signed in to change notification settings - Fork 796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FRAME] Warn when using default SubstrateWeights
in production
#3581
Comments
Hi @ggwpez I would love to be assigned to this task :) |
Sounds good (if you are still interested). Sorry i was out of office last month. |
Thx ! |
I think maybe starting with a deprecated warning that is triggered on Not sure if it will all work out, but maybe just playing around with it a bit will show how we can solve it. One thing is certain though: We never enable |
Roger the warning was added to this PR #7046. Maybe later on we might have an actual "production" flag used everywhere that could replace this, but i guess that would require a lot of small code changes everywhere |
Warnings from the wasm build process are not propagated to the main build. (If you not enable |
PR for #3581 Added a cfg to show a deprecated warning message when using std --------- Co-authored-by: command-bot <> Co-authored-by: Adrian Catangiu <[email protected]>
We can probably come up with a
cfg
clause to add adeprecation
to the auto-generatedSubstrateWeights
to prevent them from accidentally being used in production.Either by using
production
profile,on-chain-release-build
,std
or similar.Idea came up here.
The text was updated successfully, but these errors were encountered: