zksync-sdk / zksync2-go

zksync2-go is a geth library adapted to work with the zkSync Era.
Apache License 2.0
87 stars 36 forks source link

go dependency version too old #29

Closed Meteriox closed 7 months ago

Meteriox commented 7 months ago

this repo depend on github.com/miguelmota/go-ethereum-hdwallet, which uses github.com/btcsuite/btcutil/hdkeychain, and btcsuite has already move btcutil to github.com/btcsuite/btcd/btcutil which is under btcd repo, so if i use zksync-go and other repo depend on btcsuite/btcd/btcutil,confilct will happen.

here is the go mod tidy error output message: github.com/zksync-sdk/zksync2-go/accounts imports github.com/miguelmota/go-ethereum-hdwallet imports github.com/btcsuite/btcutil/hdkeychain imports github.com/btcsuite/btcd/btcec: module github.com/btcsuite/btcd@latest found (v0.24.0), but does not contain package github.com/btcsuite/btcd/btcec

you can fork this repo and update its go mod dependency or use this instead:https://github.com/stephenlacy/go-ethereum-hdwallet

danijelTxFusion commented 7 months ago

Thanks for reporting this issue. I will change dependency to https://github.com/stephenlacy/go-ethereum-hdwallet since latest version of github.com/miguelmota/go-ethereum-hdwallet still uses the old btcutil dependency.

danijelTxFusion commented 7 months ago

Fixed in v0.4.0.