We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 970b78f commit 01a811eCopy full SHA for 01a811e
chain/ethereum/src/codec.rs
@@ -134,7 +134,9 @@ impl Into<web3::types::U64> for TransactionTraceStatus {
134
impl Into<Option<web3::types::U64>> for TransactionTraceStatus {
135
fn into(self) -> Option<web3::types::U64> {
136
match self {
137
- Self::Unknown => None,
+ Self::Unknown => {
138
+ panic!("Got a transaction trace with status UNKNOWN, datasource is broken")
139
+ }
140
Self::Succeeded => Some(web3::types::U64::from(1)),
141
Self::Failed => Some(web3::types::U64::from(0)),
142
Self::Reverted => Some(web3::types::U64::from(0)),
0 commit comments