Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert #112

Merged
merged 1 commit into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/assets-manager/client.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package assetsmanager

Check failure on line 1 in client/assets-manager/client.go

View workflow job for this annotation

GitHub Actions / Lint

: # github.com/trustwallet/assets-go-libs/client/assets-manager

import (
"time"

"github.com/trustwallet/go-common/client"
"github.com/trustwallet/go-libs/client"
)

type Client struct {
Expand All @@ -18,12 +18,12 @@

func (c *Client) ValidateAssetInfo(req *AssetValidationReq) (result AssetValidationResp, err error) {
err = c.req.Post(&result, "/v1/validate/asset_info", req)

Check failure on line 21 in client/assets-manager/client.go

View workflow job for this annotation

GitHub Actions / Unit Tests

undefined: client.NewReqBuilder
return result, err
}

func (c *Client) GetTagValues() (result TagValuesResp, err error) {
err = c.req.GetWithCache(&result, "/v1/values/tags", nil, time.Hour)

Check failure on line 27 in client/assets-manager/client.go

View workflow job for this annotation

GitHub Actions / Unit Tests

assignment mismatch: 2 variables but c.req.Execute returns 1 value

Check failure on line 27 in client/assets-manager/client.go

View workflow job for this annotation

GitHub Actions / Unit Tests

not enough arguments in call to c.req.Execute
return result, err
}
17 changes: 4 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,16 @@ go 1.18
require github.com/trustwallet/go-primitives v0.0.76

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
github.com/prometheus/client_golang v1.12.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
google.golang.org/protobuf v1.30.0 // indirect
github.com/rogpeppe/go-internal v1.8.1 // indirect
)

require (
github.com/deckarep/golang-set v1.7.1 // indirect
github.com/trustwallet/go-common v0.8.17
golang.org/x/crypto v0.9.0 // indirect
github.com/trustwallet/go-libs v0.3.13
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/image v0.5.0
golang.org/x/sys v0.8.0 // indirect
golang.org/x/sys v0.1.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading
Loading