Closed azmove closed 3 years ago
fixed by my self
I got the same issue, how did you fix it?
I got the same issue, how did you fix it?
直接git clone https://github.com/okex/okexchain-go-sdk 然后打开 goland开发工具 设置go get的代理(方法:右下角小扳手-preference-go-go modules(vgo)) https://goproxy.cn 用IDE打开项目的方式 打开okexchain-go-sdk文件夹 然后 随便打开一个client.go文件 等待加载所需要模块 即可纵享丝滑
I got the same issue, how did you fix it?
一定要注意,不要新建空白项目然后导入 这个sdk包
一定要注意,不要新建空白项目然后导入 这个sdk包 一定要注意,不要新建空白项目然后导入 这个sdk包 直接git clone https://github.com/okex/okexchain-go-sdk 然后打开 goland开发工具 设置go get的代理(方法:右下角小扳手-preference-go-go modules(vgo)) https://goproxy.cn 用IDE打开项目的方式 打开okexchain-go-sdk文件夹 然后 随便打开一个client.go文件 等待加载所需要模块 即可纵享丝滑
已解决,多谢。
ASAP...HELP
Summary of Bug
GOROOT=/usr/local/go #gosetup GOPATH=/Users/lXXXXX/go #gosetup /usr/local/go/bin/go build -o /private/var/folders/3m/fhmx6hxj7v36tcrs_bdbqhz00000gn/T/___go_build_text_go /Users/liquan/go/src/okt/text.go #gosetup
github.com/okex/okexchain/x/gov/types
../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/content.go:24:18: undefined: "github.com/cosmos/cosmos-sdk/types".Error ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/content.go:30:56: undefined: "github.com/cosmos/cosmos-sdk/types".Error ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/content.go:34:52: undefined: "github.com/cosmos/cosmos-sdk/types".Error ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/deposit.go:13:13: undefined: "github.com/cosmos/cosmos-sdk/types".SysCoins ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/deposit.go:17:69: undefined: "github.com/cosmos/cosmos-sdk/types".SysCoins ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/errors.go:29:40: undefined: "github.com/cosmos/cosmos-sdk/types".Error ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/errors.go:33:44: undefined: "github.com/cosmos/cosmos-sdk/types".Error ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/errors.go:37:44: undefined: "github.com/cosmos/cosmos-sdk/types".Error ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/errors.go:41:50: undefined: "github.com/cosmos/cosmos-sdk/types".Error ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/proposal.go:23:17: undefined: "github.com/cosmos/cosmos-sdk/types".SysCoins ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/gov/types/errors.go:41:50: too many errors
github.com/okex/okexchain/x/params/client/utils
../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/params/client/utils/utils.go:32:15: undefined: "github.com/cosmos/cosmos-sdk/types".SysCoins ../../pkg/mod/github.com/okex/okexchain@v0.16.0/x/params/client/utils/utils.go:43:15: undefined: "github.com/cosmos/cosmos-sdk/types".SysCoins
github.com/okex/okexchain/app/types
../../pkg/mod/github.com/okex/okexchain@v0.16.0/app/types/account.go:56:32: cannot use acc.BaseAccount.GetCoins().AmountOf(denom) (type "github.com/cosmos/cosmos-sdk/types".Int) as type "github.com/cosmos/cosmos-sdk/types".Dec in return argument ../../pkg/mod/github.com/okex/okexchain@v0.16.0/app/types/account.go:64:32: cannot use coins.AmountOf(denom) (type "github.com/cosmos/cosmos-sdk/types".Int) as type "github.com/cosmos/cosmos-sdk/types".Dec in argument to amt.Sub ../../pkg/mod/github.com/okex/okexchain@v0.16.0/app/types/account.go:68:32: cannot use diff (type "github.com/cosmos/cosmos-sdk/types".Dec) as type "github.com/cosmos/cosmos-sdk/types".Int in argument to "github.com/cosmos/cosmos-sdk/types".NewCoin ../../pkg/mod/github.com/okex/okexchain@v0.16.0/app/types/account.go:71:61: cannot use diff.Neg() (type "github.com/cosmos/cosmos-sdk/types".Dec) as type "github.com/cosmos/cosmos-sdk/types".Int in argument to "github.com/cosmos/cosmos-sdk/types".NewCoin ../../pkg/mod/github.com/okex/okexchain@v0.16.0/app/types/coin.go:30:39: undefined: "github.com/cosmos/cosmos-sdk/types".SysCoin
Compilation finished with exit code 2
Version
go mod module okt
go 1.15
require ( github.com/go-yaml/yaml v2.1.0+incompatible github.com/okex/okexchain-go-sdk v0.16.0 // indirect ) replace github.com/keybase/go-keychain => github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4
Steps to Reproduce
For Admin Use