Closed cristaloleg closed 3 months ago
I mentioned cyclic import in PR description.
https://github.com/celestiaorg/go-square/pull/1#issuecomment-1857914345
I thought I mentioned it in that comment, but I likely forgot. Another good reason to keep core-core types under the same pkg is that we wouldn't need to deal with cycles.
Overview
We were comparing against incorrect const (
math.MaxUint8
) but error message refers to the proper (share.MaxShareVersion
).Sadly we cannot import
shares
package inblob
due to cyclic dependency, adding comment for the future. Also, removed uselessfmt
alias forfmt
package.