Skip to content

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

Closed
Ayushdubey86 wants to merge 2 commits intobluealloy:mainfrom
Ayushdubey86:Return-Fatal-error-on-bls-precompiles-if-in-no_std-#2208
Closed

Return Fatal error on bls precompiles if in no_std #2208#2210
Ayushdubey86 wants to merge 2 commits intobluealloy:mainfrom
Ayushdubey86:Return-Fatal-error-on-bls-precompiles-if-in-no_std-#2208

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

@codspeed-hq
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