Use async flag directly from context

This commit is contained in:
ValarDragon
2018-07-05 20:15:40 -07:00
parent 27a31cae44
commit 8857b69d02
9 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ func (ctx CoreContext) EnsureSignBuildBroadcast(name string, msgs []sdk.Msg, cdc
return err
}
if async {
if ctx.Async {
res, err := ctx.BroadcastTxAsync(txBytes)
fmt.Println("Async tx sent. tx hash: ", res.Hash.String())
return err