polkadot-js/extension

View on GitHub
packages/extension-compat-metamask/src/bundle.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function injectMetaMaskWeb3 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function injectMetaMaskWeb3 (win: Web3Window): void {
  // decorate the compat interface
  win.injectedWeb3['Web3Source'] = {
    enable: async (): Promise<Injected> => {
      const providerRaw = await detectEthereumProvider({ mustBeMetaMask: true });
Severity: Minor
Found in packages/extension-compat-metamask/src/bundle.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status