alloy icon indicating copy to clipboard operation
alloy copied to clipboard

[Feature] Add otterscan extension trait of `TransactionResponse`

Open emhane opened this issue 5 months ago • 0 comments

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

emhane avatar Sep 24 '24 14:09 emhane