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

feat: make eth_call and eth_estimateGas default to using Pending block #1568

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

prestwich
Copy link
Member

Changes default behavior of eth_call and eth_estimateGas to use the "pending" block tag.

Motivation

per discussion in slack channel

Users do not expect to simulate on latest height and timestamp, and will get subtly incorrect outputs when calls read block.height or block.timestamp. Users generally expect the next value when simulating, as they are anticipating submitting a transaction. This changes default client behavior to specify "pending" for those calls

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@mattsse mattsse merged commit fd62995 into main Oct 25, 2024
26 checks passed
@mattsse mattsse deleted the prestwich/default-to-pending branch October 25, 2024 18:41
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.

2 participants