You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify precompile interface: remove gas_limit from PrecompileOutput, flatten PrecompileError
Remove gas_limit field from PrecompileOutput (only gas_used needed) and
eliminate the PrecompileError wrapper layer so errors are returned directly
as the enum variant without .into() conversion.
let input = Bytes::from(hex!("000000000000000000000000000000000a2833e497b38ee3ca5c62828bf4887a9f940c9e426c7890a759c20f248c23a7210d2432f4c98a514e524b5184a0ddac00000000000000000000000000000000150772d56bf9509469f9ebcd6e47570429fd31b0e262b66d512e245c38ec37255529f2271fd70066473e393a8bead0c30000000000000000000000000000000000000000000000000000000000000000"));
let padded_result = pad_g1_point(&unpadded_result);
33
33
34
34
Ok(PrecompileOutput::new(
35
-
gas_limit,
36
35
MAP_FP_TO_G1_BASE_GAS_FEE,
37
36
padded_result.into(),
38
37
))
@@ -47,6 +46,6 @@ mod test {
47
46
fnsanity_test(){
48
47
let input = Bytes::from(hex!("000000000000000000000000000000006900000000000000636f6e7472616374595a603f343061cd305a03f40239f5ffff31818185c136bc2595f2aa18e08f17"));
49
48
let fail = map_fp_to_g1(&input,MAP_FP_TO_G1_BASE_GAS_FEE);
0 commit comments