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

Invoke estimate gas limit if gas limit not already provided #1582

Merged

Conversation

jelacamarko
Copy link
Contributor

@jelacamarko jelacamarko commented Jun 2, 2023

Description

Transaction relayer (aka TxRelayer) relies on eth_estimateGasLimit to calculate the gas limit and set it to the transaction, instead of using the hardcoded value before sending the transaction.

Hardcoded gas limit values are left only in the bridge exit CLI command and inside E2E test framework as a fallback in case gas estimation fails (for example account is not allow listed).

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have added the relevant labels
  • I have updated the official documentation
  • I have added sufficient documentation in code

Testing

  • I have tested this code with the official test suite
  • I have tested this code manually

@Stefan-Ethernal Stefan-Ethernal force-pushed the EVM-676-estimate-gas-limit-when-sending-transactions branch from a0612f4 to ac2ad4b Compare June 19, 2023 07:53
@Stefan-Ethernal Stefan-Ethernal marked this pull request as ready for review June 19, 2023 09:14
@Stefan-Ethernal Stefan-Ethernal requested a review from a team June 19, 2023 09:14
@Stefan-Ethernal Stefan-Ethernal requested a review from a team June 20, 2023 12:18
…ransactions

# Conflicts:
#	txrelayer/txrelayer.go
Copy link
Contributor

@vcastellm vcastellm left a comment

Choose a reason for hiding this comment

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

LGTM

@jelacamarko jelacamarko merged commit bb8f77c into develop Jun 27, 2023
7 checks passed
@jelacamarko jelacamarko deleted the EVM-676-estimate-gas-limit-when-sending-transactions branch June 27, 2023 11:12
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants