diff --git a/jest.config.js b/jest.config.js index 8a02db22..b43953d4 100644 --- a/jest.config.js +++ b/jest.config.js @@ -45,10 +45,10 @@ const baseConfig = { // An object that configures minimum threshold enforcement for coverage results coverageThreshold: { global: { - branches: 64.35, + branches: 64.65, functions: 65.65, - lines: 65.21, - statements: 65.32, + lines: 65.51, + statements: 65.61, }, }, diff --git a/src/MetaMaskInpageProvider.ts b/src/MetaMaskInpageProvider.ts index 0b16d817..0fd477b2 100644 --- a/src/MetaMaskInpageProvider.ts +++ b/src/MetaMaskInpageProvider.ts @@ -31,7 +31,7 @@ export type MetaMaskInpageProviderOptions = { shouldSendMetadata?: boolean; jsonRpcStreamName?: string | undefined; -} & Partial>; +} & Partial>; type SentWarningsState = { // methods diff --git a/src/initializeInpageProvider.ts b/src/initializeInpageProvider.ts index 20ecb5e5..3fba9600 100644 --- a/src/initializeInpageProvider.ts +++ b/src/initializeInpageProvider.ts @@ -52,9 +52,6 @@ export function initializeProvider({ shouldSetOnWindow = true, shouldShimWeb3 = false, }: InitializeProviderOptions): MetaMaskInpageProvider { - if (!jsonRpcStreamName) { - throw new Error('Required paramater: jsonRpcStreamName'); - } const provider = new MetaMaskInpageProvider(connectionStream, { jsonRpcStreamName, logger,