Skip to content
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

Return Fatal error on bls precompiles if in no_std #2208 #2210

Conversation

Ayushdubey86
Copy link
Contributor

@Ayushdubey86 Ayushdubey86 commented Mar 13, 2025

As of now , i have added if condition globally to all precompile together, as i working on issue but if you feel the need of more personal error like "c-kzg feature is not enabled" , I'll push it within this pr itself

Copy link

codspeed-hq bot commented Mar 13, 2025

CodSpeed Performance Report

Merging #2210 will not alter performance

Comparing Ayushdubey86:Return-Fatal-error-on-bls-precompiles-if-in-no_std-#2208 (24344c7) with main (00d5ec4)

Summary

✅ 8 untouched benchmarks

map_fp2_to_g2::PRECOMPILE,
]
.into_iter()
cfg_if! {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in the wrong place it should be in fn prague function

if #[cfg(not(feature = "std"))] { // If no_std is enabled
vec![
PrecompileWithAddress(
u64_to_address(0x0A),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All addresses should be covered, not just one

@rakita
Copy link
Member

rakita commented Mar 19, 2025

Superseded in #2249

@rakita rakita closed this Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants