Skip to content

Commit

Permalink
debug unexpected zkevm client situation
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaubennassar committed Feb 2, 2024
1 parent f4be6e0 commit 3b038f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jsonrpc/client/zkevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ func (c *Client) BatchByNumber(ctx context.Context, number *big.Int) (*types.Bat
if err != nil {
return nil, err
}
if result == nil {
return nil, fmt.Errorf("unesxpected error, couldn't get batch from RPC, but it didn't return error. RPC response: %+v", response)
}

return result, nil
}

0 comments on commit 3b038f6

Please sign in to comment.