Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add otterscan extension trait of TransactionResponse #1346

Open
emhane opened this issue Sep 24, 2024 · 0 comments
Open

[Feature] Add otterscan extension trait of TransactionResponse #1346

emhane opened this issue Sep 24, 2024 · 0 comments
Labels
debt Tech debt which needs to be addressed

Comments

@emhane
Copy link
Member

emhane commented Sep 24, 2024

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 paradigmxyz/reth#9774 (comment)

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Tech debt which needs to be addressed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant