Skip to content

Instantly share code, notes, and snippets.

@alexytiger
Last active March 6, 2019 21:50
Show Gist options
  • Save alexytiger/db67c63147cd99ea845260cef77aaf72 to your computer and use it in GitHub Desktop.
Save alexytiger/db67c63147cd99ea845260cef77aaf72 to your computer and use it in GitHub Desktop.
public setAttack(name: string): Observable<any> {
return from(this.smartContract.deployed()).pipe(
switchMap((instance: any) =>
from(instance.changeAttack(name, {from: this.web3.eth.defaultAccount}))
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment