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

refactor: remove hacky solution to get right witness offset #1494

Merged

Conversation

Torres-ssf
Copy link
Contributor

@Torres-ssf Torres-ssf commented Dec 8, 2023

I am removing a hacky solution that was originally added on PR #1307 to properly remove the witness bytes sizes from the TX bytes sizes when estimating the gas used on a TX.

This workaround was required because the witnesses's size calculations did not always match the same size that they were on the fuel-core side.

I have tried to simulate this error again after we update to fuel-core 0.21.0 and it seems we do not have this issue anymore. So I am closing it.

@Torres-ssf Torres-ssf added the bug Issue is a bug label Dec 8, 2023
@Torres-ssf Torres-ssf self-assigned this Dec 8, 2023
@Torres-ssf Torres-ssf closed this Dec 9, 2023
@Torres-ssf Torres-ssf reopened this Dec 9, 2023
@Torres-ssf Torres-ssf changed the title refactor: remove hacky solution to get right witness offset refactor:remove hacky solution to get right witness offset Dec 9, 2023
@Torres-ssf Torres-ssf changed the title refactor:remove hacky solution to get right witness offset refactor: remove hacky solution to get right witness offset Dec 9, 2023
@Torres-ssf Torres-ssf closed this Dec 10, 2023
@Torres-ssf Torres-ssf reopened this Dec 10, 2023
@Torres-ssf Torres-ssf changed the title refactor: remove hacky solution to get right witness offset refactor:remove hacky solution to get right witness offset Dec 10, 2023
@Torres-ssf Torres-ssf changed the title refactor:remove hacky solution to get right witness offset refactor: remove hacky solution to get right witness offset Dec 10, 2023
Copy link
Contributor

github-actions bot commented Dec 10, 2023

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 86.54% 6025/6962
🟡 Branches 70.05% 933/1332
🟡 Functions 77.44% 992/1281
🟢 Lines 86.54% 5772/6670

Test suite run success

1465 tests passing in 258 suites.

Report generated by 🧪jest coverage report action from 75f5b45

@Torres-ssf Torres-ssf enabled auto-merge (squash) December 11, 2023 10:28
@Torres-ssf Torres-ssf merged commit 2f70ac6 into master Dec 11, 2023
10 checks passed
@Torres-ssf Torres-ssf deleted the st/refactor/remove-hacky-solution-to-get-witness-offset branch December 11, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inaccurate Offset Calculation for a Decoded Transaction witnesses
3 participants