refactor: export ErrMultibaseEncodingNotSupported
This commit is contained in:
parent
d907fddde8
commit
039fbc1867
|
@ -7,7 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
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")
|
errMultibaseDecodeZeroLength = errors.New("cannot decode multibase for zero length string")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ func MultibaseDecodeString(data string) (bytes []byte, err error) {
|
||||||
case ':':
|
case ':':
|
||||||
bytes = []byte(data)
|
bytes = []byte(data)
|
||||||
default:
|
default:
|
||||||
err = errMultibaseEncodingNotSupported
|
err = ErrMultibaseEncodingNotSupported
|
||||||
}
|
}
|
||||||
|
|
||||||
return bytes, err
|
return bytes, err
|
||||||
|
|
Loading…
Reference in New Issue