-
Notifications
You must be signed in to change notification settings - Fork 5
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
internal/reader: add GetExpectedNextSequenceNumber method #81
Conversation
internal/reader/ccip.go
Outdated
// in the onramp. | ||
GetExpectedNextSequenceNumber( | ||
ctx context.Context, | ||
sourceChainSelector cciptypes.ChainSelector, |
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 thought we were going to stop using the implicit destination:
sourceChainSelector cciptypes.ChainSelector, | |
source, dest cciptypes.ChainSelector, |
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.
Good catch, done.
} | ||
|
||
if err := r.validateReaderExistence(sourceChainSelector); err != nil { | ||
return 0, err |
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.
wrap the err?
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.
We have a ticket for this I want to tackle next: https://smartcontract-it.atlassian.net/browse/CCIP-3071
Test Coverage
|
## Motivation We want to add a test for GetExpectedNextSequenceNumber in ccipreader_test.go Related PR: smartcontractkit/chainlink-ccip#81 ## Solution Add a test for GetExpectedNextSequenceNumber in ccipreader_test.go
We want to add a test for GetExpectedNextSequenceNumber in ccipreader_test.go Related PR: smartcontractkit/chainlink-ccip#81 Add a test for GetExpectedNextSequenceNumber in ccipreader_test.go
We want to add a test for GetExpectedNextSequenceNumber in ccipreader_test.go Related PR: smartcontractkit/chainlink-ccip#81 Add a test for GetExpectedNextSequenceNumber in ccipreader_test.go
We want to add a test for GetExpectedNextSequenceNumber in ccipreader_test.go Related PR: smartcontractkit/chainlink-ccip#81 Add a test for GetExpectedNextSequenceNumber in ccipreader_test.go
## Motivation We want to add a test for GetExpectedNextSequenceNumber in ccipreader_test.go Related PR: smartcontractkit/chainlink-ccip#81 ## Solution Add a test for GetExpectedNextSequenceNumber in ccipreader_test.go
Test in core: smartcontractkit/ccip#1373
The commit plugin currently builds merkle roots of size one because it only reads offramp sequence numbers. Add this so it can read onramp sequence numbers as well