neo-go/pkg/neorpc/result/validate_address.go
Anna Shaleva 6b21ad9922 *: replace interface{} with any keyword
Everywhere including examples, external interop APIs, bindings generators
code and in other valuable places. A couple of `interface{}` usages are
intentionally left in the CHANGELOG.md, documentation and tests.
2023-04-04 13:22:42 +03:00

9 lines
333 B
Go

package result
// ValidateAddress represents a result of the `validateaddress` call. Notice that
// Address is an interface{} here because the server echoes back whatever address
// value a user has sent to it, even if it's not a string.
type ValidateAddress struct {
Address any `json:"address"`
IsValid bool `json:"isvalid"`
}