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: included call.from to the cacheKey in callConsensusNode() #2993

Merged

Conversation

quiet-node
Copy link
Member

Description:
This PR simply adds the call.from to the cacheKey in callConsensusNode() as certain requests (e.g., HRC719.isAssociated()) require call.from as an additional specifier to ensure more accurate cached values.

Related issue(s):

Fixes #2992

Notes for reviewer:

Checklist

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

Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
@quiet-node quiet-node added the enhancement New feature or request label Sep 17, 2024
@quiet-node quiet-node added this to the 0.56.0 milestone Sep 17, 2024
@quiet-node quiet-node self-assigned this Sep 17, 2024
@quiet-node quiet-node linked an issue Sep 17, 2024 that may be closed by this pull request
Copy link

sonarcloud bot commented Sep 17, 2024

Copy link

Tests

       3 files     284 suites   19s ⏱️
1 317 tests 1 316 ✔️ 1 💤 0
1 329 runs  1 328 ✔️ 1 💤 0

Results for commit 6011867.

Copy link

Acceptance Tests

  17 files  232 suites   29m 18s ⏱️
606 tests 598 ✔️ 4 💤 4
692 runs  682 ✔️ 6 💤 4

Results for commit 6011867.

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

Copy link
Contributor

@acuarica acuarica left a comment

Choose a reason for hiding this comment

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

lg

@quiet-node quiet-node merged commit 98727be into main Sep 17, 2024
41 of 42 checks passed
@quiet-node quiet-node deleted the 2992-relay-returned-wrong-cached-value-for-hrc719isassociated branch September 17, 2024 19:48
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.47%. Comparing base (e54bb85) to head (6011867).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2993      +/-   ##
==========================================
+ Coverage   89.18%   89.47%   +0.28%     
==========================================
  Files          54       56       +2     
  Lines        3783     3830      +47     
  Branches      774      782       +8     
==========================================
+ Hits         3374     3427      +53     
+ Misses        362      356       -6     
  Partials       47       47              
Flag Coverage Δ
relay 89.60% <100.00%> (ø)
server 88.15% <ø> (+0.89%) ⬆️
ws-server 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/relay/src/lib/eth.ts 88.83% <100.00%> (ø)

... and 4 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relay returned wrong cached value for HRC719.isAssociated()
3 participants