@@ -288,7 +288,7 @@ func deploy2(ctx context.Context, cccid *ccprovider.CCContext, chaincodeDeployme
288
288
ccprovider .PutChaincodeIntoFS (chaincodeDeploymentSpec )
289
289
290
290
sysCCVers := util .GetSysCCVersion ()
291
- lcccid := ccprovider .NewCCContext (cccid .ChainID , cis .ChaincodeSpec .ChaincodeId .Name , sysCCVers , uuid , true , nil )
291
+ lcccid := ccprovider .NewCCContext (cccid .ChainID , cis .ChaincodeSpec .ChaincodeId .Name , sysCCVers , uuid , true , nil , nil )
292
292
293
293
//write to lccc
294
294
if _ , _ , err = ExecuteWithErrorFilter (ctx , lcccid , cis ); err != nil {
@@ -331,7 +331,7 @@ func invokeWithVersion(ctx context.Context, chainID string, version string, spec
331
331
}
332
332
}()
333
333
334
- cccid := ccprovider .NewCCContext (chainID , chaincodeInvocationSpec .ChaincodeSpec .ChaincodeId .Name , version , uuid , false , nil )
334
+ cccid := ccprovider .NewCCContext (chainID , chaincodeInvocationSpec .ChaincodeSpec .ChaincodeId .Name , version , uuid , false , nil , nil )
335
335
retval , ccevt , err = ExecuteWithErrorFilter (ctx , cccid , chaincodeInvocationSpec )
336
336
if err != nil {
337
337
return nil , uuid , nil , fmt .Errorf ("Error invoking chaincode: %s" , err )
@@ -362,7 +362,7 @@ func executeDeployTransaction(t *testing.T, chainID string, name string, url str
362
362
args := util .ToChaincodeArgs (f , "a" , "100" , "b" , "200" )
363
363
spec := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : & pb.ChaincodeID {Name : name , Path : url , Version : "0" }, Input : & pb.ChaincodeInput {Args : args }}
364
364
365
- cccid := ccprovider .NewCCContext (chainID , name , "0" , "" , false , nil )
365
+ cccid := ccprovider .NewCCContext (chainID , name , "0" , "" , false , nil , nil )
366
366
367
367
_ , err = deploy (ctxt , cccid , spec , 0 )
368
368
@@ -389,7 +389,7 @@ func chaincodeQueryChaincode(chainID string, user string) error {
389
389
390
390
spec1 := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID1 , Input : & pb.ChaincodeInput {Args : args }}
391
391
392
- cccid1 := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil )
392
+ cccid1 := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil , nil )
393
393
394
394
var nextBlockNumber uint64
395
395
@@ -413,7 +413,7 @@ func chaincodeQueryChaincode(chainID string, user string) error {
413
413
414
414
spec2 := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID2 , Input : & pb.ChaincodeInput {Args : args }}
415
415
416
- cccid2 := ccprovider .NewCCContext (chainID , "example05" , "0" , "" , false , nil )
416
+ cccid2 := ccprovider .NewCCContext (chainID , "example05" , "0" , "" , false , nil , nil )
417
417
418
418
_ , err = deploy (ctxt , cccid2 , spec2 , nextBlockNumber )
419
419
nextBlockNumber ++
@@ -618,7 +618,7 @@ func TestExecuteInvokeTransaction(t *testing.T) {
618
618
619
619
var ctxt = context .Background ()
620
620
621
- cccid := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil )
621
+ cccid := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil , nil )
622
622
url := "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02"
623
623
chaincodeID := & pb.ChaincodeID {Name : "example02" , Path : url , Version : "0" }
624
624
@@ -652,7 +652,7 @@ func TestExecuteInvokeInvalidTransaction(t *testing.T) {
652
652
url := "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02"
653
653
chaincodeID := & pb.ChaincodeID {Name : "example02" , Path : url , Version : "0" }
654
654
655
- cccid := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil )
655
+ cccid := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil , nil )
656
656
657
657
//FAIL, FAIL!
658
658
args := []string {"x" , "-1" }
@@ -709,7 +709,7 @@ func chaincodeInvokeChaincode(t *testing.T, chainID string, user string) (err er
709
709
710
710
spec1 := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID1 , Input : & pb.ChaincodeInput {Args : args }}
711
711
712
- cccid1 := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil )
712
+ cccid1 := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil , nil )
713
713
714
714
var nextBlockNumber uint64
715
715
@@ -736,7 +736,7 @@ func chaincodeInvokeChaincode(t *testing.T, chainID string, user string) (err er
736
736
737
737
spec2 := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID2 , Input : & pb.ChaincodeInput {Args : args }}
738
738
739
- cccid2 := ccprovider .NewCCContext (chainID , "example04" , "0" , "" , false , nil )
739
+ cccid2 := ccprovider .NewCCContext (chainID , "example04" , "0" , "" , false , nil , nil )
740
740
741
741
_ , err = deploy (ctxt , cccid2 , spec2 , nextBlockNumber )
742
742
nextBlockNumber ++
@@ -812,7 +812,7 @@ func TestChaincodeInvokeChaincodeErrorCase(t *testing.T) {
812
812
813
813
spec1 := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID1 , Input : & pb.ChaincodeInput {Args : args }}
814
814
815
- cccid1 := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil )
815
+ cccid1 := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil , nil )
816
816
817
817
var nextBlockNumber uint64
818
818
@@ -837,7 +837,7 @@ func TestChaincodeInvokeChaincodeErrorCase(t *testing.T) {
837
837
838
838
spec2 := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID2 , Input : & pb.ChaincodeInput {Args : args }}
839
839
840
- cccid2 := ccprovider .NewCCContext (chainID , "pthru" , "0" , "" , false , nil )
840
+ cccid2 := ccprovider .NewCCContext (chainID , "pthru" , "0" , "" , false , nil , nil )
841
841
842
842
_ , err = deploy (ctxt , cccid2 , spec2 , nextBlockNumber )
843
843
nextBlockNumber ++
@@ -903,7 +903,7 @@ func TestQueries(t *testing.T) {
903
903
904
904
spec := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID , Input : & pb.ChaincodeInput {Args : args }}
905
905
906
- cccid := ccprovider .NewCCContext (chainID , "tmap" , "0" , "" , false , nil )
906
+ cccid := ccprovider .NewCCContext (chainID , "tmap" , "0" , "" , false , nil , nil )
907
907
908
908
var nextBlockNumber uint64
909
909
_ , err = deploy (ctxt , cccid , spec , nextBlockNumber )
@@ -1003,7 +1003,7 @@ func TestGetEvent(t *testing.T) {
1003
1003
f := "init"
1004
1004
spec := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID , Input : & pb.ChaincodeInput {Args : util .ToChaincodeArgs (f )}}
1005
1005
1006
- cccid := ccprovider .NewCCContext (chainID , "esender" , "0" , "" , false , nil )
1006
+ cccid := ccprovider .NewCCContext (chainID , "esender" , "0" , "" , false , nil , nil )
1007
1007
var nextBlockNumber uint64
1008
1008
_ , err = deploy (ctxt , cccid , spec , nextBlockNumber )
1009
1009
nextBlockNumber ++
@@ -1073,7 +1073,7 @@ func TestChaincodeQueryChaincodeUsingInvoke(t *testing.T) {
1073
1073
1074
1074
spec1 := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID1 , Input : & pb.ChaincodeInput {Args : args }}
1075
1075
1076
- cccid1 := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil )
1076
+ cccid1 := ccprovider .NewCCContext (chainID , "example02" , "0" , "" , false , nil , nil )
1077
1077
var nextBlockNumber uint64
1078
1078
_ , err = deploy (ctxt , cccid1 , spec1 , nextBlockNumber )
1079
1079
nextBlockNumber ++
@@ -1096,7 +1096,7 @@ func TestChaincodeQueryChaincodeUsingInvoke(t *testing.T) {
1096
1096
1097
1097
spec2 := & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID2 , Input : & pb.ChaincodeInput {Args : args }}
1098
1098
1099
- cccid2 := ccprovider .NewCCContext (chainID , "example05" , "0" , "" , false , nil )
1099
+ cccid2 := ccprovider .NewCCContext (chainID , "example05" , "0" , "" , false , nil , nil )
1100
1100
1101
1101
_ , err = deploy (ctxt , cccid2 , spec2 , nextBlockNumber )
1102
1102
nextBlockNumber ++
0 commit comments