We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be80e88 commit 96b5b42Copy full SHA for 96b5b42
src/ethereum_test_vm/bytecode.py
@@ -5,8 +5,8 @@
5
from pydantic import GetCoreSchemaHandler
6
from pydantic_core.core_schema import (
7
PlainValidatorFunctionSchema,
8
+ format_ser_schema,
9
no_info_plain_validator_function,
- to_string_ser_schema,
10
)
11
12
from ethereum_test_base_types import Bytes, Hash
@@ -232,5 +232,5 @@ def __get_pydantic_core_schema__(
232
"""Provide Pydantic core schema for Bytecode serialization and validation."""
233
return no_info_plain_validator_function(
234
cls,
235
- serialization=to_string_ser_schema(),
+ serialization=format_ser_schema("0x{}"),
236
0 commit comments