From 1ae3632fa67f9e8a5033f29391460c6aa0373f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Garamv=C3=B6lgyi?= Date: Thu, 4 Jun 2026 22:39:16 +0200 Subject: [PATCH] fix(tests): encode z, y as big-endian in test_point_evaluation_precompile_gas --- .../eip4844_blobs/test_point_evaluation_precompile_gas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cancun/eip4844_blobs/test_point_evaluation_precompile_gas.py b/tests/cancun/eip4844_blobs/test_point_evaluation_precompile_gas.py index 231f084a7f9..0efdab78b44 100644 --- a/tests/cancun/eip4844_blobs/test_point_evaluation_precompile_gas.py +++ b/tests/cancun/eip4844_blobs/test_point_evaluation_precompile_gas.py @@ -22,7 +22,7 @@ ceiling_division, ) -from .common import INF_POINT, Z +from .common import INF_POINT, Z_Y_VALID_ENDIANNESS, Z from .spec import Spec, ref_spec_4844 REFERENCE_SPEC_GIT_PATH = ref_spec_4844.git_path @@ -41,8 +41,8 @@ def precompile_input(proof: Literal["correct", "incorrect"]) -> bytes: versioned_hash = Spec.kzg_to_versioned_hash(kzg_commitment) return ( versioned_hash - + z.to_bytes(32, "little") - + y.to_bytes(32, "little") + + z.to_bytes(32, Z_Y_VALID_ENDIANNESS) + + y.to_bytes(32, Z_Y_VALID_ENDIANNESS) + kzg_commitment + kzg_proof )