-
Notifications
You must be signed in to change notification settings - Fork 33
Conversation
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.
LGTM, thanks for doing this. This reminds me I should go through the seed node branch and make sure the errors/logging there are to this standard.
tr.Poller.FetchContractData(tr.Parser.Abi(), contractAddr, "name", nil, name, tr.LastBlock) | ||
pollingErr := tr.Poller.FetchContractData(tr.Parser.Abi(), contractAddr, "name", nil, name, tr.LastBlock) | ||
if pollingErr != nil { | ||
// can't return this error because "name" might not exist on the contract |
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.
👍
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.
🚀
headerRepository.CreateOrUpdateHeader(mocks.MockHeader2) | ||
headerRepository.CreateOrUpdateHeader(mocks.MockHeader3) | ||
_, err := headerRepository.CreateOrUpdateHeader(mocks.MockHeader1) | ||
Expect(err).ToNot(HaveOccurred()) |
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.
💯
addresses, err = r.RetrieveTokenHolderAddresses(*info) | ||
Expect(err).ToNot(HaveOccurred()) | ||
var retrieveErr error | ||
addresses, retrieveErr = r.RetrieveTokenHolderAddresses(*info) |
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.
super tiny, but I think we could probably change this to addresses, retrieveErr := r.RetrieveTokenHolderAddresses(*info)
instead of defining retrieveErr
on the line above.
addresses, err = r.RetrieveTokenHolderAddresses(contract.Contract{}) | ||
Expect(err).ToNot(HaveOccurred()) | ||
var retrieveErr error | ||
addresses, retrieveErr = r.RetrieveTokenHolderAddresses(contract.Contract{}) |
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.
here too, totally not merge blocking.
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.
ab81192
to
8a93cfb
Compare
- Focus on header mode - Add context to errors, trace guard clauses, warn on non-returned errors - Give errors distinct names so compiler will recognize if unchecked - Remove redundant type declarations/fix typos
8a93cfb
to
4505382
Compare
errors