okx / go-wallet-sdk

Multi-chain golang signature sdk, supports bitcoin, ethereum, aptos, cosmos, etc.
MIT License
341 stars 111 forks source link

example doesn't work #45

Closed parham2013 closed 3 months ago

parham2013 commented 3 months ago

image

image

eth.go example doesn't work

zychappy commented 3 months ago

go mod tidy

parham2013 commented 3 months ago

go mod tidy

That's the first thing i did

zychappy commented 3 months ago

go mod tidy

That's the first thing i did

1 make sure the project's path is in the GOPATH; 2 execute go mod tidy should be in the package path,such as ~/go/src/go-wallet-sdk/example :go mod tidy 3 something package needs to execute manually like go get github.com/okx/go-wallet-sdk/crypto/bip32@v0.0.2 it works in my computer. if you try to use these functions in other project,make sure use the right quote or alias.

image image
yanminmin commented 3 months ago

go mod tidy

That's the first thing i did

1 make sure the project's path is in the GOPATH; 2 execute go mod tidy should be in the package path,such as ~/go/src/go-wallet-sdk/example :go mod tidy 3 something package needs to execute manually like go get github.com/okx/go-wallet-sdk/crypto/bip32@v0.0.2 it works in my computer. if you try to use these functions in other project,make sure use the right quote or alias.

image image

great.thanks.