chore: exhaustive match for builtin tracer (#19105)

This commit is contained in:
Matthias Seitz
2025-10-17 11:42:18 +02:00
committed by GitHub
parent 3af2c93fc6
commit a2c50947b8

View File

@@ -420,6 +420,11 @@ where
Ok(frame.into())
}
_ => {
// Note: this match is non-exhaustive in case we need to add support for
// additional tracers
Err(EthApiError::Unsupported("unsupported tracer").into())
}
},
#[cfg(not(feature = "js-tracer"))]
GethDebugTracerType::JsTracer(_) => {
@@ -839,6 +844,11 @@ where
return Ok((frame.into(), res.state));
}
_ => {
// Note: this match is non-exhaustive in case we need to add support for
// additional tracers
Err(EthApiError::Unsupported("unsupported tracer").into())
}
},
#[cfg(not(feature = "js-tracer"))]
GethDebugTracerType::JsTracer(_) => {