Created
March 6, 2019 02:10
-
-
Save alexytiger/64cd71739f7e6a0e6615fe3d1fead811 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public getAttack(): Observable<string> { | |
return from(this.smartContract.deployed()).pipe( | |
switchMap((instance: any) => from<string>(instance.currentAttack()) | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment