Skip to content

Commit 4ee91c9

Browse files
author
Julian Ventura
committed
Add missed error handling
1 parent b714153 commit 4ee91c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/chainio/avs_reader.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ func (r *AvsReader) GetPendingBatchFromMerkleRoot(merkleRoot [32]byte) (*service
189189
batchIdentifier := append(batch.BatchMerkleRoot[:], batch.SenderAddress[:]...)
190190
batchIdentifierHash := *(*[32]byte)(crypto.Keccak256(batchIdentifier))
191191
state, err := r.AvsContractBindings.ServiceManager.ContractAlignedLayerServiceManagerCaller.BatchesState(nil, batchIdentifierHash)
192+
if err != nil {
193+
return nil, err
194+
}
192195
if state.Responded {
193196
return nil, nil
194197
}

0 commit comments

Comments
 (0)