Skip to content

fix(network): report unsupported tx types via Err instead of panicking - #319

Open
HusseinAdeiza wants to merge 1 commit into
podnetwork:mainfrom
HusseinAdeiza:fix/complete-type-unsupported-txtype
Open

HusseinAdeiza wants to merge 1 commit into
podnetwork:mainfrom
HusseinAdeiza:fix/complete-type-unsupported-txtype

Conversation

@HusseinAdeiza

Copy link
Copy Markdown

Summary

PodTransactionRequest::complete_type() hit unimplemented!() for any TxType other than EIP-1559, which panics the caller's thread. The trait signature already returns Result<(), Vec<&'static str>>, so unsupported transaction types now report through the Err path — consistent with how every other validation failure in the builder is surfaced.

No behavior changes for EIP-1559 (the only previously working path).

complete_type() hit unimplemented!() for any TxType other than EIP-1559,
which panics the caller's thread. The trait's signature already returns
Result<(), Vec<&'static str>>, so unsupported types now report through the
Err path like every other validation failure.
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.

1 participant