Skip to content

Remove timber call for public read only functions#481

Merged
lydiagarms merged 3 commits intomasterfrom
lyd/readOnlyTimber
Mar 4, 2026
Merged

Remove timber call for public read only functions#481
lydiagarms merged 3 commits intomasterfrom
lyd/readOnlyTimber

Conversation

@lydiagarms
Copy link
Collaborator

@lydiagarms lydiagarms commented Mar 4, 2026

Summary

In api_services.mjs, for read-only functions, the startEventFilter for timber is called. However, for public functions, timber is not necessary. As we only support public read-only functions in Starlight, we should not call startEventFilter.

Checklist

  • Tests added/updated
  • CI passes
  • No secrets/keys committed
  • Docs updated (if needed)
  • Backwards compatible (or noted breaking change)

How to test

  1. The relevant test contract is user-friendly-tests/PublicContract.zol
  2. Call the addPublic API with any input.
  3. Test the readB API and make sure "publicReturns" is set to double the input to addPublic.

Screenshots / Evidence (if applicable)

Screenshot 2026-03-04 at 12 01 47

@lydiagarms lydiagarms requested review from SwatiEY and jtcoolen March 4, 2026 12:31
SwatiEY
SwatiEY previously approved these changes Mar 4, 2026
jtcoolen
jtcoolen previously approved these changes Mar 4, 2026
@lydiagarms lydiagarms dismissed stale reviews from jtcoolen and SwatiEY via 842c0c7 March 4, 2026 13:45
@lydiagarms lydiagarms force-pushed the lyd/readOnlyTimber branch from ba14560 to 842c0c7 Compare March 4, 2026 13:45
@lydiagarms lydiagarms force-pushed the lyd/readOnlyTimber branch from 842c0c7 to bbf2757 Compare March 4, 2026 15:31
@lydiagarms lydiagarms marked this pull request as ready for review March 4, 2026 15:33
@SwatiEY SwatiEY self-requested a review March 4, 2026 17:04
@lydiagarms lydiagarms merged commit af0c203 into master Mar 4, 2026
2 checks passed
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

🎉 This PR is included in version 1.10.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants