zhangchiqing / merkle-patricia-trie

A simplified golang implementation of Ethereum's Modified Patricia Trie.
MIT License
224 stars 68 forks source link

Fix module name to enable importing #13

Closed hiasr closed 5 months ago

hiasr commented 5 months ago

Currently, it is not possible to import this project in a go module, when you try to do that you get this error:

go get "github.com/zhangchiqing/merkle-patricia-trie"                                           
go: downloading github.com/zhangchiqing/merkle-patricia-trie v0.0.0-20221001045205-378516ae831b
go: github.com/zhangchiqing/merkle-patricia-trie@upgrade (v0.0.0-20221001045205-378516ae831b) requires github.com/zhangchiqing/merkle-patricia-trie@v0.0.0-20221001045205-378516ae831b: parsing go.mod:
        module declares its path as: merkle-patrica-trie
                but was required as: github.com/zhangchiqing/merkle-patricia-tri

This PR fixes that and closes #12

hiasr commented 5 months ago

I was too quick, there are more issues due to the fact that everything is declared in the main package.