Skip to content
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 erroneous return in VerifyBatches function #1441

Merged
merged 4 commits into from
Dec 6, 2022

Conversation

KonradIT
Copy link
Contributor

@KonradIT KonradIT commented Dec 5, 2022

Reported by @cool-develope : https://github.com/0xPolygonHermez/zkevm-node/blob/develop/ethtxmanager/ethtxmanager.go#L153

What does this PR do?

The function was returning nil, nil when everything goes right.

Reviewers

Main reviewers:

Codeowner reviewers:

ethtxmanager/ethtxmanager.go Outdated Show resolved Hide resolved
@kind84 kind84 self-assigned this Dec 6, 2022
@kind84 kind84 added the bug Something isn't working label Dec 6, 2022
@@ -211,7 +211,7 @@ func (a *Aggregator) sendFinalProof() {
continue
}

log.Infof("Final proof for batches %d-%d verified in transaction %v", proof.BatchNumber, proof.BatchNumberFinal, tx.Hash())
log.Infof("Final proof for batches [%d-%d] verified in transaction [%v]", proof.BatchNumber, proof.BatchNumberFinal, tx.Hash().TerminalString())
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know why this part is not covered in the test?

@kind84 kind84 merged commit c2b3abd into develop Dec 6, 2022
@kind84 kind84 deleted the ethtxmanager_fix_return branch December 6, 2022 10:18
@kind84 kind84 restored the ethtxmanager_fix_return branch December 6, 2022 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla-signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants