Skip to content

Instantly share code, notes, and snippets.

@GrandSchtroumpf
Created July 31, 2018 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GrandSchtroumpf/c49e386a9100ee72c53362f2bfe98f26 to your computer and use it in GitHub Desktop.
Save GrandSchtroumpf/c49e386a9100ee72c53362f2bfe98f26 to your computer and use it in GitHub Desktop.
The way to create a web3 token with
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