Merge pull request #1562 from maticnetwork/lmartins/fix_v2.1.0-beta

Fix localEndBlock nil check
This commit is contained in:
Lucca Martins 2025-06-03 15:28:05 -03:00 committed by GitHub
commit 7fc0447dfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ func (b *EthAPIBackend) GetVoteOnHash(ctx context.Context, starBlockNr uint64, e
// Check if end block exist
localEndBlock, err := b.BlockByNumber(ctx, rpc.BlockNumber(endBlockNr))
if err != nil {
if err != nil || localEndBlock == nil {
return false, errEndBlock
}