refactor: export ErrMultibaseEncodingNotSupported

This commit is contained in:
Derrick Hammer 2024-01-04 09:50:11 -05:00
parent d907fddde8
commit 039fbc1867
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import (
)
var (
errMultibaseEncodingNotSupported = errors.New("multibase encoding not supported")
ErrMultibaseEncodingNotSupported = errors.New("multibase encoding not supported")
errMultibaseDecodeZeroLength = errors.New("cannot decode multibase for zero length string")
)
@ -45,7 +45,7 @@ func MultibaseDecodeString(data string) (bytes []byte, err error) {
case ':':
bytes = []byte(data)
default:
err = errMultibaseEncodingNotSupported
err = ErrMultibaseEncodingNotSupported
}
return bytes, err