Skip to content

Instantly share code, notes, and snippets.

@alexytiger
Created March 6, 2019 02:10
Show Gist options
  • Save alexytiger/64cd71739f7e6a0e6615fe3d1fead811 to your computer and use it in GitHub Desktop.
Save alexytiger/64cd71739f7e6a0e6615fe3d1fead811 to your computer and use it in GitHub Desktop.
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