MCPcopy
hub / github.com/trustwallet/assets / ValidateTokenListFile

Method ValidateTokenListFile

internal/processor/validators.go:266–271  ·  view source on GitHub ↗
(f *file.AssetFile)

Source from the content-addressed store, hash-verified

264}
265
266func (s *Service) ValidateTokenListFile(f *file.AssetFile) error {
267 tokenListPath := f.Path()
268 tokenListExtendedPath := path.GetTokenListPath(f.Chain().Handle, path.TokenlistExtended)
269
270 return validateTokenList(tokenListPath, tokenListExtendedPath, f.Chain())
271}
272
273func (s *Service) ValidateTokenListExtendedFile(f *file.AssetFile) error {
274 tokenListPathExtended := f.Path()

Callers

nothing calls this directly

Calls 1

validateTokenListFunction · 0.85

Tested by

no test coverage detected