diff --git a/src/initializeInpageProvider.ts b/src/initializeInpageProvider.ts index 3fba9600..20ecb5e5 100644 --- a/src/initializeInpageProvider.ts +++ b/src/initializeInpageProvider.ts @@ -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,