Skip to content

Commit

Permalink
client: return error correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tynes committed May 12, 2021
1 parent c1b0d00 commit c9e41f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l2geth/rollup/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func (c *Client) GetLastConfirmedEnqueue() (*types.Transaction, error) {
}
// No enqueue transactions have been confirmed yet
if *meta.QueueIndex == uint64(0) {
return nil, nil
return nil, errElementNotFound
}
next, err := c.GetEnqueue(*meta.QueueIndex - 1)
if err != nil {
Expand Down

0 comments on commit c9e41f2

Please sign in to comment.