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 injecting block when injectable param is null #171

Merged
merged 2 commits into from
May 9, 2024

Conversation

kostekIV
Copy link
Contributor

@kostekIV kostekIV commented May 8, 2024

I have found a problem with request caching in case when:

  • in params there is injectable blockHash (or number)
  • request contains injectable param but set to None (json null)

With that proxy will cache such requests and will use cached value for future reponses, even though when passing none we usually want to get most recent state.

To fix it I propose to inject the param also in case when injectable param in request is set to None.

cc @xlc

@xlc
Copy link
Member

xlc commented May 9, 2024

Thanks for the fix!

@xlc xlc merged commit 4255da9 into AcalaNetwork:master May 9, 2024
1 check passed
kostekIV added a commit to Cardinal-Cryptography/subway that referenced this pull request May 9, 2024
* Fix injecting block when injectable param is null

* rm nl
kostekIV added a commit to Cardinal-Cryptography/subway that referenced this pull request May 9, 2024
* Fix injecting block when injectable param is null

* rm nl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants