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 64bb5e3 commit 4068681
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/info/asset.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package info

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

Expand All @@ -9,6 +10,9 @@ 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 := ValidateAssetID(*a.ID, addr); err != nil {
compErr.Append(err)
}
Expand Down

0 comments on commit 4068681

Please sign in to comment.