MCPcopy Create free account
hub / github.com/base/base / assert_unsupported

Function assert_unsupported

crates/execution/txpool/src/validator.rs:2443–2450  ·  view source on GitHub ↗
(result: Result<(), InvalidPoolTransactionError>)

Source from the content-addressed store, hash-verified

2441 /// Helper: assert structural validation returns `Invalid` with `TxTypeNotSupported`.
2442 #[track_caller]
2443 fn assert_unsupported(result: Result<(), InvalidPoolTransactionError>) {
2444 match result {
2445 Err(InvalidPoolTransactionError::Consensus(
2446 InvalidTransactionError::TxTypeNotSupported,
2447 )) => {}
2448 other => panic!("expected TxTypeNotSupported, got {other:?}"),
2449 }
2450 }
2451
2452 /// Helper: assert structural validation returns `Invalid` with `ChainIdMismatch`.
2453 #[track_caller]

Calls

no outgoing calls