diff --git a/eip712_cosmos.go b/eip712_cosmos.go index 313eecd8..73d3ef1c 100644 --- a/eip712_cosmos.go +++ b/eip712_cosmos.go @@ -301,6 +301,10 @@ func traverseFields( if isCollection { ethTyp += "[]" } + if field.Kind() == reflect.String && field.Len() == 0 { + // skip empty strings from type mapping + continue + } if prefix == typeDefPrefix { typeMap[rootType] = append(typeMap[rootType], typeddata.Type{ Name: fieldName,