Created
July 31, 2018 19:29
-
-
Save GrandSchtroumpf/c49e386a9100ee72c53362f2bfe98f26 to your computer and use it in GitHub Desktop.
The way to create a web3 token with
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { InjectionToken } from '@angular/core'; | |
import Web3 from 'web3'; | |
export const WEB3 = new InjectionToken<Web3>('web3', { | |
providedIn: 'root', | |
factory: () => new Web3(Web3.givenProvider) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment