File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
go-lisa/go-testcases/hf/cchi/cchi6 Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ package main
2+
3+ import (
4+ "fmt"
5+
6+ "github.com/hyperledger/fabric-chaincode-go/shim"
7+ "github.com/hyperledger/fabric-protos-go/peer"
8+ )
9+
10+ type ContractA struct {
11+ }
12+
13+ func (s * ContractA ) Invoke (stub shim.ChaincodeStubInterface ) peer.Response {
14+
15+ resp := stub .InvokeChaincode ("contractB" , []byte ("10" ), "mychannel" )
16+
17+ return shim .Success ([]byte ("Hello!" ))
18+ }
Original file line number Diff line number Diff line change 1+ package main
2+
3+ import (
4+ "fmt"
5+
6+ "github.com/hyperledger/fabric-chaincode-go/shim"
7+ "github.com/hyperledger/fabric-protos-go/peer"
8+ )
9+
10+ type ContractB struct {
11+ }
12+
13+ func (t * ContractB ) Invoke (stub shim.ChaincodeStubInterface ) peer.Response {
14+
15+ stub .PutState ("key1" , "Bob" )
16+
17+ return shim .Success ([]byte ("OK" ))
18+ }
You can’t perform that action at this time.
0 commit comments