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

Make value returned by eth_gasPrice configurable #39

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

m-Peter
Copy link
Collaborator

@m-Peter m-Peter commented Feb 6, 2024

Work towards: #2

Description

Allow configuration of value returned by the eth_gasPrice JSON-RPC endpoint.


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the standards mentioned here.
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

@m-Peter m-Peter added this to the Flow-EVM-M2 milestone Feb 6, 2024
@m-Peter m-Peter self-assigned this Feb 6, 2024
api/api.go Outdated
@@ -25,7 +25,7 @@ import (
)

const EthNamespace = "eth"
const defaultGasPrice = 8049999872
const DefaultGasPrice = 8049999872
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably better to have these default config variables in the config.go

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and also to make it big.int type since that is needed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea 👍 Updated in 7a979d0

@m-Peter m-Peter merged commit c8c43be into onflow:main Feb 6, 2024
1 check passed
@m-Peter m-Peter deleted the configurable-gas-price branch February 6, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants