Created
April 12, 2018 10:58
-
-
Save GrandSchtroumpf/583f6461361067f4d90973539e7d5864 to your computer and use it in GitHub Desktop.
Get accounts wrapper for Angular
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
/** Return the list of accounts available */ | |
public getAccounts(): Observable<string[]> { | |
return fromPromise(this.web3.eth.getAccounts()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment