FISCO-BCOS / go-sdk

golang SDK of FISCO BCOS
Apache License 2.0
73 stars 57 forks source link

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

Open yekai1003 opened 1 year ago

yekai1003 commented 1 year ago

目前克隆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 commented 1 year ago

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