Skip to content

Commit b4f982d

Browse files
committed
add fallback to BatchState
1 parent 459ee8c commit b4f982d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

core/chainio/retryable.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,11 @@ func BatchState(s *AvsSubscriber, opts *bind.CallOpts, arg0 [32]byte) func() (st
199199
Responded bool
200200
RespondToTaskFeeLimit *big.Int
201201
}, error) {
202-
return s.AvsContractBindings.ServiceManager.ContractAlignedLayerServiceManagerCaller.BatchesState(opts, arg0)
202+
state, err := s.AvsContractBindings.ServiceManager.ContractAlignedLayerServiceManagerCaller.BatchesState(opts, arg0)
203+
if err != nil {
204+
state, err = s.AvsContractBindings.ServiceManagerFallback.BatchesState(opts, arg0)
205+
}
206+
return state, err
203207
}
204208
return batchState_func
205209
}

0 commit comments

Comments
 (0)