Skip to content

Commit

Permalink
refactor: properly use MethodNotSupportedError
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Apr 25, 2024
1 parent ce2c1ec commit 74d7db1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rpc-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ export async function handleChainRequest(
}

default:
throw new MethodNotSupportedError(
`Method not supported: ${request.method}`,
);
throw new MethodNotSupportedError(request.method);
}
}

Expand Down

0 comments on commit 74d7db1

Please sign in to comment.