Skip to content

Commit

Permalink
fix: validate param jsonRpcStreamName
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Oct 18, 2024
1 parent af2ac32 commit 711ce29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/initializeInpageProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export function initializeProvider({
shouldSetOnWindow = true,
shouldShimWeb3 = false,
}: InitializeProviderOptions): MetaMaskInpageProvider {
if (!jsonRpcStreamName) {
throw new Error('Required paramater: jsonRpcStreamName');
}
const provider = new MetaMaskInpageProvider(connectionStream, {
jsonRpcStreamName,
logger,
Expand Down

0 comments on commit 711ce29

Please sign in to comment.