GithubHelp home page GithubHelp logo

Comments (8)

MrRancy avatar MrRancy commented on August 24, 2024

Same error from me as well, is there a fix for this??

from fabric-sdk-go.

MrHIDEn avatar MrHIDEn commented on August 24, 2024

@MrRancy, I got error when I run tests. You too? I do not have solution yet. Sad.

from fabric-sdk-go.

Teja-S avatar Teja-S commented on August 24, 2024

@MrHIDEn, I am using fabric-sdk-go in a personal package development, and that's when I got this error. don't know, because of this, I am unable to build my package. By the way, what is the version you are using? I am working on v1.20

from fabric-sdk-go.

Teja-S avatar Teja-S commented on August 24, 2024

Hey @MrHIDEn, I got it working with these versions, for me, the error was from a different package which is the fabric-protos-go. Probably it's the same for you. Could you give it a try with this version?

go.mod file

go 1.20

require (
	github.com/hyperledger/fabric-lib-go v1.0.0 // indirect
	github.com/hyperledger/fabric-sdk-go v1.0.0 // indirect
	github.com/hyperledger/fabric v2.1.1+incompatible
	github.com/hyperledger/fabric-amcl v0.0.0-20221107192335-5c75bc7be9c0 // indirect
	github.com/hyperledger/fabric-config v0.1.0
	github.com/hyperledger/fabric-protos-go v0.0.0-20200707132912-fee30f3ccd23
)

from fabric-sdk-go.

MrHIDEn avatar MrHIDEn commented on August 24, 2024

Hey @Teja-S, Generali my app works on any Go version exept 1.14 but when I run tests I got error provided.
No for Go 1.20 I have below code

// go.mod file
go 1.20

require (
	github.com/codahale/sss v0.0.0-20160501174526-0cb9f6d3f7f1
	github.com/ghodss/yaml v1.0.0
	github.com/hyperledger/fabric-contract-api-go v1.2.1
	github.com/hyperledger/fabric-sdk-go v1.0.0
)

from fabric-sdk-go.

MrHIDEn avatar MrHIDEn commented on August 24, 2024

One of error says:

C:\Users\user\go\pkg\mod\github.com\hyperledger\[email protected]\internal\github.com\hyperledger\fabric\discovery\client\api.go:47:38: undefined: discovery.ChaincodeCall

when I go there to ..\api.go:47:38 I see there is real issue:

	// Peers returns a response for a peer membership query, or error if something went wrong
	Peers(invocationChain ...*discovery.ChaincodeCall) ([]*Peer, error)

*discovery doesn't have ChaincodeCall at all !!

from fabric-sdk-go.

MrHIDEn avatar MrHIDEn commented on August 24, 2024

That is interested:
Github search: org:hyperledger Peers(invocationChain

Peers(invocationChain ...*peer.ChaincodeCall) ([]*Peer, error)

Peers(invocationChain ...*peer.ChaincodeCall) ([]*Peer, error)

On my libs installed
C:\Users\user\go\pkg\mod\github.com\hyperledger\[email protected]\internal\github.com\hyperledger\fabric\discovery\client\api.go
Peers(invocationChain ...*discovery.ChaincodeCall) ([]*Peer, error)

from fabric-sdk-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.