Skip to content

fix(rpc-types-mev): serialize EthCallBundle timestamp/timeout/gas_limit as plain integers#3763

Open
vanityKoa wants to merge 1 commit intoalloy-rs:mainfrom
vanityKoa:rpc-types-mev
Open

fix(rpc-types-mev): serialize EthCallBundle timestamp/timeout/gas_limit as plain integers#3763
vanityKoa wants to merge 1 commit intoalloy-rs:mainfrom
vanityKoa:rpc-types-mev

Conversation

@vanityKoa
Copy link
Copy Markdown
Contributor

EthCallBundle's timestamp, timeout, and gas_limit fields use with = "alloy_serde::quantity::opt", which serializes them as hex strings (e.g. "0x3e8"). However, Flashbots mev-geth defines these as plain Go integer types (*uint64/*int64), and Go's standard JSON unmarshaler rejects hex strings for numeric types.

Fix: switch to deserialize_with only (accept hex on input, serialize as plain integers), matching the pattern already used by EthSendBundle's min_timestamp/max_timestamp in the same file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant