Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
batch-submitter: handle error case explicitly
It was possible to return from a function directly into destructuring an array when the return value was polymorphic in either being an array or undefined. The undefined case is handled explicitly now and an error is thrown with a useful error message instead of something that would require looking at the source code and knowing nodejs error types to find out what the problem was.
- Loading branch information
1 parent
a5807cd
commit 71f8de9
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@eth-optimism/batch-submitter': patch | ||
--- | ||
|
||
Handle error case more explicity when creating invalid batch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters