diff --git a/pkg/eosclient/utils/utils.go b/pkg/eosclient/utils/utils.go index a2c5094010c..d0d11fd071b 100644 --- a/pkg/eosclient/utils/utils.go +++ b/pkg/eosclient/utils/utils.go @@ -30,6 +30,7 @@ const ( UserAttr ) +// AttrTypeToString converts an AttrType to a string func AttrTypeToString(at eosclient.AttrType) string { switch at { case SystemAttr: @@ -41,6 +42,7 @@ func AttrTypeToString(at eosclient.AttrType) string { } } +// AttrStringToType parses a string to an AttrType func AttrStringToType(t string) (eosclient.AttrType, error) { switch t { case "sys":