Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go-sdk使用版本不匹配 #214

Open
yekai1003 opened this issue Apr 20, 2023 · 1 comment
Open

go-sdk使用版本不匹配 #214

yekai1003 opened this issue Apr 20, 2023 · 1 comment
Labels

Comments

@yekai1003
Copy link
Contributor

目前克隆go-sdk后,编译得到的abigen,用其生成的代码默认使用v1.0.0这个tag来处理,这个tag里的代码和生成的代码不兼容。是不是考虑发布一个新的tag?
另外,工程首页的教程也是最新代码,和tagv1.0.0也不兼容

bcos\bcos.go:19:3: cannot use "group0" (type untyped string) as type int in field value
bcos\bcos.go:21:3: unknown field 'Host' in struct literal of type conf.Config
bcos\bcos.go:22:3: unknown field 'Port' in struct literal of type conf.Config
bcos\bcos.go:23:3: unknown field 'TLSCaFile' in struct literal of type conf.Config
bcos\bcos.go:24:3: unknown field 'TLSKeyFile' in struct literal of type conf.Config
bcos\bcos.go:25:3: unknown field 'TLSCertFile' in struct literal of type conf.Config
bcos\hello.go:44:2: cannot use receipt (type *"github.com/FISCO-BCOS/go-sdk/core/types".Transaction) as type *"github.com/FISCO-BCOS/go-sdk/core/types".Receipt in return argument
bcos\hello.go:180:49: _Hello.Contract.HelloTransactor.contract.TransactWithResult undefined (type *bind.BoundContract has no field or method TransactWithResult)
bcos\hello.go:199:33: _Hello.Contract.contract.TransactWithResult undefined (type *bind.BoundContract has no field or method TransactWithResult)
bcos\hello.go:260:46: _Hello.contract.TransactWithResult undefined (type *bind.BoundContract has no field or method TransactWithResult)
bcos\hello.go:260:46: too many errors
@bxq2011hust
Copy link
Member

master分支对应FISCO BCOS v3,tag对应FISCO BCOS v2,不能混用
等master分支稳定下来,会打v3的tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants