Skip to content

Commit 6e034b9

Browse files
Remove chainId fallback logic and return error if agg.chainID is not available
Co-Authored-By: Chris Li <chris.li.2046@gmail.com>
1 parent 4eff87e commit 6e034b9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

aggregator/auth.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,7 @@ func (r *RpcServer) GetSignatureFormat(ctx context.Context, req interface{}) (in
209209
if r.agg != nil && r.agg.chainID != nil {
210210
chainId = r.agg.chainID
211211
} else {
212-
if config.CurrentChainEnv == config.EthereumEnv {
213-
chainId = config.MainnetChainID
214-
} else {
215-
chainId = config.HoleskyChainID
216-
}
212+
return nil, status.Errorf(codes.Internal, "Chain ID not available. Aggregator not fully initialized.")
217213
}
218214

219215
issuedAt := time.Now().UTC().Format("2006-01-02T15:04:05.000Z")

0 commit comments

Comments
 (0)