alloy
alloy copied to clipboard
[Feature] Add otterscan extension trait of `TransactionResponse`
Component
rpc
Describe the feature you would like
Add extension trait OtterscanTxResp: TransactionResponse
with trait method
fn otterscan_api_truncate_input(&mut self);
implemented for alloy_rpc_types_eth::Transaction
as
fn otterscan_api_truncate_input(&mut self) {
self.input = self.input.slice(..4)
}
Ref https://github.com/paradigmxyz/reth/pull/9774#discussion_r1766812587
Additional context
No response