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

Fix eth_estimateGas for hollow account creation (#844) #860

Merged

Conversation

Nana-EC
Copy link
Collaborator

@Nana-EC Nana-EC commented Jan 30, 2023

Description:
Cherry pick #844
Hollow account creation requires an accurate gas amount response

  • add a TX_HOLLOW_ACCOUNT_CREATION_GAS to capture the necessary gas amount
  • Update eth_estimateGas to check in the case of a transfer transaction if the recipient exists or not. If so return update gas, if not default to current flow
  • Update unit and acceptance tests

Signed-off-by: nikolay n.atanasow94@gmail.com
Signed-off-by: georgi-l95 glazarov95@gmail.com
Co-authored-by: georgi-l95 glazarov95@gmail.com

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@Nana-EC Nana-EC self-assigned this Jan 30, 2023
@Nana-EC Nana-EC added this to the 0.17.0 milestone Jan 30, 2023
@Nana-EC Nana-EC added enhancement New feature or request limechain P1 labels Jan 30, 2023
lukelee-sl
lukelee-sl previously approved these changes Jan 30, 2023
Copy link
Member

@lukelee-sl lukelee-sl left a comment

Choose a reason for hiding this comment

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

LGTM

@AlfredoG87
Copy link
Collaborator

Why is the DCO Check failing with: one commit is incorrectly signed off, when the commit in this PR has "Signed-off-by" as part of the message, could it be because it was expecting that at the last line of the commit message, and in this case is "Co-authored-by" instead?

image

Hollow account creation requires an accurate gas amount response

- add a `TX_HOLLOW_ACCOUNT_CREATION_GAS` to capture the necessary gas amount
- Update `eth_estimateGas` to check in the case of a transfer transaction if the recipient exists or not. If so return update gas, if not default to current flow
- Update unit and acceptance tests

Signed-off-by: nikolay <n.atanasow94@gmail.com>
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
Co-authored-by: georgi-l95 <glazarov95@gmail.com>
Signed-off-by: Nana Essilfie-Conduah <nana@swirldslabs.com>
@Nana-EC Nana-EC force-pushed the 0-17-fix-estimateGas-for-hollow-account-creation branch from 5e6e672 to d0a5d29 Compare January 30, 2023 22:17
@Nana-EC Nana-EC requested a review from lukelee-sl January 30, 2023 22:17
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Nana-EC Nana-EC merged commit 6d14f05 into release/0.17 Jan 30, 2023
@Nana-EC Nana-EC deleted the 0-17-fix-estimateGas-for-hollow-account-creation branch January 30, 2023 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request limechain P1
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants