Skip to content

Commit

Permalink
api: fix 'executeoperations' result
Browse files Browse the repository at this point in the history
  • Loading branch information
xiphon committed Apr 1, 2019
1 parent 2547b47 commit 5a261a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ func (this *Api) ExecuteOperations(_ context.Context, params *struct{ RawOperati
for _, tx := range operationsSet.Operations {
_, err := this.blockchain.TxPoolAddOperation(tx)
if err != nil {
utils.Tracef("Error: %v", err)
utils.Tracef("error: %v", err)
} else if !any {
any = true
}
}

return true, nil
return any, nil
}

func (this *Api) FindOperation(_ context.Context, params *struct{ Ophash string }) (*network.Operation, error) {
Expand Down

0 comments on commit 5a261a6

Please sign in to comment.