Skip to content

Commit

Permalink
check length before slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless0x committed Oct 10, 2024
1 parent 4d3f7f8 commit 8cf3ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/customTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function customTransport(

let shouldSkipLog = false

if (error?.data && isHex(error?.data)) {
if (isHex(error?.data) && error?.data?.length > 10) {
const errorSelector = slice(error?.data, 0, 4)

if (
Expand Down

0 comments on commit 8cf3ea7

Please sign in to comment.