Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
defisaur committed May 10, 2024
1 parent 5dacdae commit 64bb5e3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/info/asset.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package info

import (
"github.com/trustwallet/assets-go-libs/validation"
"github.com/trustwallet/go-primitives/coin"
)

Expand All @@ -10,12 +9,6 @@ func ValidateAsset(a AssetModel, chain coin.Coin, addr string) error {
return err
}

// All fields validated for nil and can be safety used.
compErr := validation.NewErrComposite()
if err := ValidateAssetType(*a.Type, chain); err != nil {
compErr.Append(err)
}

if err := ValidateAssetID(*a.ID, addr); err != nil {
compErr.Append(err)

Check failure on line 13 in internal/info/asset.go

View workflow job for this annotation

GitHub Actions / check

undefined: compErr
}
Expand Down

0 comments on commit 64bb5e3

Please sign in to comment.