Where is the best way to put this code to have it available everywhere in the app? let provider = window.web3.currentProvider; let web3Instance = this.get('web3').setup(provider);
Where is the best way to put this code to have it available everywhere in the app?
let provider = window.web3.currentProvider;
let web3Instance = this.get('web3').setup(provider);