// QuerySre query the chaincode to get the state of sre

QuerySre query the chaincode to get the state of sre
// QuerySre query the chaincode to get the state of sre
func (setup *FabricSetup) QuerySre(value string) (string, error) {
	var args []string
	args = append(args, "invoke")
	args = append(args, "query")
	args = append(args, value)
	response, err := setup.client.Query(channel.Request{ChaincodeID: setup.ChainCodeID, Fcn: args[0], Args: [][]byte{[]byte(args[1]), []byte(args[2])}})
	if err != nil {
		return "", fmt.Errorf("failed to query: %v", err)
	}
	return string(response.Payload), nil
}
func ( setup * FabricSetup ) QuerySre ( value string ) ( string , error ) { var args [ ] string args = append ( args , " " ) args = append ( args , " " ) args = append ( args , value ) response , err := setup . client . Query ( channel . Request { ChaincodeID : setup . ChainCodeID , Fcn : args [ 0 ] , Args : [ ] [ ] byte { [ ] byte ( args [ 1 ] ) , [ ] byte ( args [ 2 ] ) } } ) if err != nil { return " " , fmt . Errorf ( " " , err ) } return string ( response . Payload ) , nil }
QuerySre query the chaincode to get the state of sre
QuerySre query the chaincode to get the state of sre
// Prepare arguments
