0

I am trying to run asset-transfer-basic sample program from hyperledger 2.2 (I am using the GO sample programs) My test network is up -- I am able to interact with it by doing "peer chaincode invoke" and exercising different contract methods -- including InitLedger.

However, when trying to run assetTransfer.go program, it blows up when doing:

result, err := contract.SubmitTransaction("InitLedger")

The error message is: failed to evaluate transaction: Failed to submit: CreateAndSendTransaction failed: SendTransaction failed: orderers is nil

Any clues? THank you

alernerdev
  • 2,014
  • 3
  • 19
  • 35

2 Answers2

0

Your length of orderers is zero. You have to set at least one orderer for this process in your fabric-sdk-go code.

Ta-seen Junaid
  • 366
  • 1
  • 6
0

This seems to be a bug in the Go SDK. In its current form, the asset-transfer-basic app, the Go flavor, simply does not work.

alernerdev
  • 2,014
  • 3
  • 19
  • 35