diff --git a/crates/rpc/rpc-types-compat/src/transaction/mod.rs b/crates/rpc/rpc-types-compat/src/transaction/mod.rs index f8b46454dc23..2d92747d4015 100644 --- a/crates/rpc/rpc-types-compat/src/transaction/mod.rs +++ b/crates/rpc/rpc-types-compat/src/transaction/mod.rs @@ -102,7 +102,9 @@ impl TransactionCompat for () { WithOtherFields::default() } - fn otterscan_api_truncate_input(_tx: &mut Self::Transaction) {} + fn otterscan_api_truncate_input(tx: &mut Self::Transaction) { + tx.input = tx.input.slice(..4); + } fn tx_type(_tx: &Self::Transaction) -> u8 { 0