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: safeTxGas estimation parse for Ethers v6 #584

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

DaniSomoza
Copy link
Contributor

@DaniSomoza DaniSomoza commented Nov 15, 2023

What it solves

Issue with the safeTxGas estimation.

How this PR fixes it

The parseSafeTxGasErrorResponse function has been enhanced to check for the existence of Ethersv6RevertData?.originalError?.data. If this data is present, it is now correctly used to decode the safeTxGas.

This issue has been found in our Demo Dapp:

Captura de pantalla 2023-11-15 a las 16 49 12

@DaniSomoza DaniSomoza requested a review from dasanra November 16, 2023 10:08
@dasanra dasanra changed the title fix safeTxGas estimation parse for Ethers v6 fix: safeTxGas estimation parse for Ethers v6 Nov 16, 2023
@dasanra dasanra merged commit 46ba3ec into release Nov 16, 2023
14 checks passed
@dasanra dasanra deleted the fix-decoded-gas-ethersv6 branch November 16, 2023 12:55
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 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.

2 participants