Skip to content

Commit

Permalink
Fix Trinity compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTMOD committed Dec 12, 2019
1 parent d50d543 commit b41fa16
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/webapi/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"strconv"

"github.com/gin-gonic/gin"
"github.com/gohornet/hornet/packages/model/tangle"
"github.com/gohornet/hornet/plugins/gossip"
"github.com/iotaledger/hive.go/parameter"
"github.com/iotaledger/iota.go/address"
"github.com/iotaledger/iota.go/trinary"
"github.com/mitchellh/mapstructure"
"github.com/gohornet/hornet/packages/model/tangle"
"github.com/gohornet/hornet/plugins/gossip"
)

func init() {
Expand Down Expand Up @@ -79,8 +79,7 @@ func findTransactions(i interface{}, c *gin.Context) {
txHashes := []string{}

if len(ft.Bundles) == 0 && len(ft.Addresses) == 0 {
e.Error = "Nothing to search for"
c.JSON(http.StatusBadRequest, e)
c.JSON(http.StatusOK, FindTransactionsReturn{Hashes: []string{}})
return
}

Expand Down

0 comments on commit b41fa16

Please sign in to comment.