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: add missing receipts properties #3156

Merged
merged 16 commits into from
Sep 16, 2024

Conversation

Torres-ssf
Copy link
Contributor

@Torres-ssf Torres-ssf commented Sep 12, 2024

Fixes TS-647

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

Copy link

vercel bot commented Sep 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
create-fuels-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 6:16pm
ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 6:16pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
create-fuels-counter-example ⬜️ Ignored (Inspect) Sep 16, 2024 6:16pm

Copy link

codspeed-hq bot commented Sep 12, 2024

CodSpeed Performance Report

Merging #3156 will improve performances by 81.8%

Comparing st/fix/add-missing-receipts-properties (c36adf2) with master (600b781)

Summary

⚡ 1 improvements
✅ 20 untouched benchmarks

Benchmarks breakdown

Benchmark master st/fix/add-missing-receipts-properties Change
Instantiate from an address 96.7 ms 53.2 ms +81.8%

Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

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

Nice work @Torres-ssf Given that this method is used in dryRun , estimateTxDependencies, estimateMultipleTxDependencies and simulate Provider methods, as well as the transaction summary methods , should we add fuel-gauge tests to capture this change in the receipts?

@Torres-ssf
Copy link
Contributor Author

Nice work @Torres-ssf Given that this method is used in dryRun , estimateTxDependencies, estimateMultipleTxDependencies and simulate Provider methods, as well as the transaction summary methods , should we add fuel-gauge tests to capture this change in the receipts?

@maschad I have updated the unit test where parsed receipts properties are validated 8cdfd23

@maschad
Copy link
Member

maschad commented Sep 12, 2024

@Torres-ssf I observed that, but that relies on mock data, do you not feel that our end-to-end / fuel-gauge tests would capture this type of inconsistency more readily given it's closer to a consumer API interaction?

@Dhaiwat10
Copy link
Member

Dhaiwat10 commented Sep 13, 2024

Why is this PR causing such a significant performance regression? 👀

@petertonysmith94
Copy link
Contributor

@Torres-ssf I observed that, but that relies on mock data, do you not feel that our end-to-end / fuel-gauge tests would capture this type of inconsistency more readily given it's closer to a consumer API interaction?

IMO as these coders are due for deprecation, mocked data is sufficient for now.

@maschad
Copy link
Member

maschad commented Sep 16, 2024

Good point @petertonysmith94

Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
77.16%(+0.03%) 71.81%(+0.14%) 75.77%(+0%) 77.27%(+0.03%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
packages/account/src/providers/transaction-summary/receipt.ts 100%
(+11.12%)
100%
(+54.55%)
100%
(+0%)
100%
(+11.12%)
🔴 packages/account/src/providers/utils/receipts.ts 94.54%
(+0.1%)
72%
(+0%)
100%
(+0%)
94.64%
(+0.1%)
🔴 packages/transactions/src/coders/receipt.ts 95.39%
(+0.07%)
84.37%
(+0%)
89.58%
(+0%)
95.16%
(+0.07%)

@Torres-ssf Torres-ssf merged commit 3668a26 into master Sep 16, 2024
26 checks passed
@Torres-ssf Torres-ssf deleted the st/fix/add-missing-receipts-properties branch September 16, 2024 21:36
nedsalk pushed a commit that referenced this pull request Sep 17, 2024
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.

Add Receipts Missing Properties
5 participants