Skip to content

Conversation

@nidhi-singh02
Copy link
Contributor

@nidhi-singh02 nidhi-singh02 commented Aug 13, 2025

Summary

requestv2() has a comment which needs to be rectified as this function does not take any input parameter of gasLimit.

Rationale

The comment is confusing as there is no gasLimit provided.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Signed-off-by: nidhi-singh02 <[email protected]>
@vercel
Copy link

vercel bot commented Aug 13, 2025

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

Project Deployment Preview Comments Updated (UTC)
api-reference Ready Preview Comment Aug 13, 2025 7:04am
6 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
component-library ⬜️ Skipped Aug 13, 2025 7:04am
developer-hub ⬜️ Skipped Aug 13, 2025 7:04am
entropy-explorer ⬜️ Skipped Aug 13, 2025 7:04am
insights ⬜️ Skipped Aug 13, 2025 7:04am
proposals ⬜️ Skipped Aug 13, 2025 7:04am
staking ⬜️ Skipped Aug 13, 2025 7:04am

@nidhi-singh02 nidhi-singh02 self-assigned this Aug 13, 2025
@nidhi-singh02 nidhi-singh02 changed the title chore(entropyv2): requestv2 comment fix chore(entropy v2): requestv2 comment fix Aug 13, 2025
/// `entropyCallback` will be run with the `gasLimit` provided to this function.
/// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded
/// by the provider's configured default limit.
/// `entropyCallback` will be run with the provider's configured default gas limit.
Copy link
Member

Choose a reason for hiding this comment

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

entropyCallback will be run with the requestor's configured gasLimit. If the request was made without a gasLimit, provider's default gas limit will be used..

Copy link
Member

Choose a reason for hiding this comment

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

Something around this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Specifically in this function call, we are not taking any gasLimit as input. I am wondering we still need to mention the first line ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah "will be run with the provider's configured default gas limit" LGTM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks Tejas, keeping it as is.

/// `entropyCallback` will be run with the `gasLimit` provided to this function.
/// The `gasLimit` will be rounded up to a multiple of 10k (e.g., 19000 -> 20000), and furthermore is lower bounded
/// by the provider's configured default limit.
/// `entropyCallback` will be run with the provider's configured default gas limit.
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah "will be run with the provider's configured default gas limit" LGTM

@nidhi-singh02 nidhi-singh02 merged commit 536d4a5 into main Aug 14, 2025
10 checks passed
@nidhi-singh02 nidhi-singh02 deleted the ientropyv2-comments branch August 14, 2025 09:27
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.

4 participants