Skip to content

Commit 01a811e

Browse files
Matthieu Vachonmaoueh
Matthieu Vachon
andauthored
chain/ethereum: Firehose transaction's status must never be unknown (#3138)
Co-authored-by: Matthieu Vachon <[email protected]>
1 parent 970b78f commit 01a811e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

chain/ethereum/src/codec.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ impl Into<web3::types::U64> for TransactionTraceStatus {
134134
impl Into<Option<web3::types::U64>> for TransactionTraceStatus {
135135
fn into(self) -> Option<web3::types::U64> {
136136
match self {
137-
Self::Unknown => None,
137+
Self::Unknown => {
138+
panic!("Got a transaction trace with status UNKNOWN, datasource is broken")
139+
}
138140
Self::Succeeded => Some(web3::types::U64::from(1)),
139141
Self::Failed => Some(web3::types::U64::from(0)),
140142
Self::Reverted => Some(web3::types::U64::from(0)),

0 commit comments

Comments
 (0)