OSDN Git Service

fix
authorwz <mars@bytom.io>
Wed, 27 Nov 2019 01:07:47 +0000 (09:07 +0800)
committerwz <mars@bytom.io>
Wed, 27 Nov 2019 01:07:47 +0000 (09:07 +0800)
api/query.go

index 00328d2..7015522 100644 (file)
@@ -145,10 +145,6 @@ func (a *API) listTransactions(ctx context.Context, filter struct {
                accountID = acc.ID
        }
 
-       if accountID == "" {
-               return NewErrorResponse(account.ErrAccountIDEmpty)
-       }
-
        transactions, err := a.wallet.GetTransactions(accountID, filter.StartTxID, filter.Count, filter.Unconfirmed)
        if err != nil {
                return NewErrorResponse(err)