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

Missing support for global variable with initialization #33

Open
VincenzoArceri opened this issue Nov 2, 2023 · 0 comments
Open

Missing support for global variable with initialization #33

VincenzoArceri opened this issue Nov 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@VincenzoArceri
Copy link
Collaborator

At 82cad83, tests testCpuUse and testCpuUseNI are ignored and do not pass due to missing support for global variable with initialization. For example, in go-lisa/go-testcases/cc/cpu-use.go:

package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"time"

	"github.com/hyperledger/fabric-chaincode-go/shim"
	pb "github.com/hyperledger/fabric-protos-go/peer"
)

//SimpleChaincode is the artifact of teh chaincode
type SimpleChaincode struct {
}

var nameSpace string = "org.cpu-use.Usage"  // global variable with initializaiton
...
@VincenzoArceri VincenzoArceri added the enhancement New feature or request label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant