-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Advanced Querying for ChainReader #14511
Conversation
29104d4
to
da45a6b
Compare
fb630e1
to
3f75c64
Compare
4af0076
to
1e6d7cb
Compare
Solidity Review Jira issueHey! We have taken the liberty to link this PR to a Jira issue for Solidity Review. This is a new feature, that's currently in the pilot phase, so please make sure that the linkage is correct. In a contrary case, please update it manually in JIRA and replace Solidity Review issue key in the changeset file with the correct one. Any changes to the Solidity Review Jira issue should be reflected in the changeset file. If you need to update the issue key, please do so manually in the following changeset file: This PR has been linked to Solidity Review Jira issue: BCFR-957 |
90a51b4
to
8b8c047
Compare
if r := recover(); r != nil { | ||
err = fmt.Errorf("%w: cannot encode %s data word comparator", commontypes.ErrInvalidType, dwTypeID) |
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.
Why are we expecting a panic?
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.
I added this, geth abi package in some scenarios panics instead of throwing an error
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.
How about mentioning "recovered from panic" somewhere in the returned error? And r
is critical to include as well.
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.
Updated the error message accordingly.
8b8c047
to
6d8ed55
Compare
Quality Gate failedFailed conditions |
* Advanced Querying for ChainReader * Handle pointer type value comparator encoding * Handle geth abi panic when encoding data word value comparators * fix linting issues * [Bot] Update changeset file with jira issues * fix linting issues * [Bot] Update changeset file with jira issues * fix linting issues * [Bot] Update changeset file with jira issues * changed function name and added comments --------- Co-authored-by: ilija <[email protected]> Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
Corresponding ticket: BCFR-44
Requires
smartcontractkit/chainlink-common#798
smartcontractkit/chainlink-solana#869
Resolves