github.com/s7techlab/cckit@v0.10.5/state/testdata/util.go (about)

     1  package testdata
     2  
     3  import "github.com/hyperledger/fabric-chaincode-go/shim"
     4  
     5  func MustCreateCompositeKey(objectType string, attributes []string) string {
     6  	key, err := shim.CreateCompositeKey(objectType, attributes)
     7  	if err != nil {
     8  		panic(err)
     9  	}
    10  
    11  	return key
    12  }