Skip to content

Commit

Permalink
Fix Trinity compatibility
Browse files Browse the repository at this point in the history
Fix Trinity compatibility
  • Loading branch information
IoTMOD authored Dec 12, 2019
2 parents d50d543 + b41fa16 commit bf47b92
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 bf47b92

Please sign in to comment.