src/web3.js
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 8
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 0
wmc 0
eloc 7
c 2
b 0
f 0
nc 2
mnd 1
bc 2
fnc 0
dl 0
loc 8
bpm 0
cpm 0
noi 1
1
import Web3 from 'web3';
2
let web3;
3
try {
4
    web3 = new Web3(window.web3.currentProvider);    
5
} catch (error) {
6
    console.log(error);
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
7
}
8
export default web3;
9