OSDN Git Service

merge with dev
[bytom/bytom.git] / api / query.go
index ed0459c..4a4737e 100644 (file)
@@ -14,10 +14,8 @@ import (
 )
 
 // POST /list-accounts
-func (a *API) listAccounts(ctx context.Context, filter struct {
-       ID string `json:"id"`
-}) Response {
-       accounts, err := a.wallet.AccountMgr.ListAccounts(filter.ID)
+func (a *API) listAccounts(ctx context.Context) Response {
+       accounts, err := a.wallet.AccountMgr.ListAccounts()
        if err != nil {
                log.Errorf("listAccounts: %v", err)
                return NewErrorResponse(err)