MCPcopy Create free account
hub / github.com/6boris/web3-template / Validate

Method Validate

api/interface/web3/defi.pb.validate.go:147–149  ·  view source on GitHub ↗

Validate checks the field values on GetTokenPriceReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

()

Source from the content-addressed store, hash-verified

145// defined in the proto definition for this message. If any rules are
146// violated, the first error encountered is returned, or nil if there are no violations.
147func (m *GetTokenPriceReply) Validate() error {
148 return m.validate(false)
149}
150
151// ValidateAll checks the field values on GetTokenPriceReply with the rules
152// defined in the proto definition for this message. If any rules are

Callers 1

validateMethod · 0.45

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected