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

refactor: delete Caller trait #1893

Closed
wants to merge 3 commits into from
Closed

Conversation

prestwich
Copy link
Member

based on #1892

Motivation

Caller trait is unused, and results in extra indirection via structs like Arc<Weak<Client>>. Its abstraction over "eth_call" vs other methods is well-covered by custom ext traits on provider, or by custom transports if low-level rewriting is needed, so it seems safe to delete it.

Solution

Remove the caller trait

This is a breaking change, as the Caller is part of the public API. it is unused in alloy, in op-alloy, and in every other user i've checked

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@prestwich prestwich marked this pull request as draft January 6, 2025 14:39
@prestwich
Copy link
Member Author

merge commit on #1892 makes it easier to start this from scratch now

@prestwich prestwich closed this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant