-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: Crash when number of pools invalid #11140
fix: Crash when number of pools invalid #11140
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
7 Skipped Deployments
|
@@ -235,7 +236,7 @@ export function useMultipleContractSingleData<TAbi extends Abi | readonly unknow | |||
}: // FIXME: wagmiv2 | |||
// MultipleSameDataCallParameters<TAbi, TFunctionName>): CallState<ContractFunctionResult<TAbi, TFunctionName>>[] { | |||
MultipleSameDataCallParameters<TAbi, TFunctionName>): CallState<any>[] { | |||
const { enabled, blocksPerFetch } = options ?? { enabled: true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is potential bug if options set without enabled param which causes enabled false/undefined by default which is unexpected
|
0ba841b
to
705853f
Compare
705853f
to
4792355
Compare
Deployment failed with the following error:
View Documentation: https://vercel.com/docs/accounts/team-members-and-roles |
4518403
to
1ce3f7c
Compare
This reverts commit 98fa244.
PR-Codex overview
This PR focuses on improving the handling of the
enabled
option in various hooks related to contract calls, ensuring that calls are only made when appropriate conditions are met.Detailed summary
numberOfPools
topoolLengthNumber
for clarity.poolLengthNumber
to ensure it's a safe integer and non-negative.enabled
option inuseSingleContractMultipleData
to conditionally execute calls.enabled
flag before making contract calls.