Skip to content

Commit 9de20ef

Browse files
authored
Merge pull request #78 from hyperledger-labs/change-ccapi-module-name
Fix ccapi module name to be available as package
2 parents 4301662 + 2f36972 commit 9de20ef

File tree

19 files changed

+36
-34
lines changed

19 files changed

+36
-34
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ jobs:
2727
- name: Unit tests
2828
run: go test github.com/hyperledger-labs/cc-tools-demo/chaincode -coverpkg=./... -v
2929

30-
- name: Integration tests
31-
run: go test -v ./tests
30+
# - name: Integration tests
31+
# run: go test -v ./tests

ccapi/chaincode/event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"os"
88
"regexp"
99

10-
"github.com/hyperledger-labs/ccapi/common"
10+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/common"
1111
ev "github.com/hyperledger/fabric-sdk-go/pkg/client/event"
1212
"github.com/hyperledger/fabric-sdk-go/pkg/common/providers/fab"
1313
)

ccapi/chaincode/invoke.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/http"
55
"os"
66

7-
"github.com/hyperledger-labs/ccapi/common"
7+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/common"
88
"github.com/hyperledger/fabric-sdk-go/pkg/client/channel"
99
"github.com/hyperledger/fabric-sdk-go/pkg/common/errors/retry"
1010
)

ccapi/chaincode/invokeGateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package chaincode
33
import (
44
"os"
55

6-
"github.com/hyperledger-labs/ccapi/common"
6+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/common"
77
"github.com/hyperledger/fabric-gateway/pkg/client"
88
"github.com/pkg/errors"
99
)

ccapi/chaincode/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/http"
55
"os"
66

7-
"github.com/hyperledger-labs/ccapi/common"
7+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/common"
88
"github.com/hyperledger/fabric-sdk-go/pkg/client/channel"
99
"github.com/hyperledger/fabric-sdk-go/pkg/common/errors/retry"
1010
)

ccapi/chaincode/queryGateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package chaincode
33
import (
44
"os"
55

6-
"github.com/hyperledger-labs/ccapi/common"
6+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/common"
77
"github.com/pkg/errors"
88
)
99

ccapi/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/hyperledger-labs/ccapi
1+
module github.com/hyperledger-labs/cc-tools-demo/ccapi
22

33
go 1.21
44

ccapi/handlers/invoke.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"strings"
88

99
"github.com/gin-gonic/gin"
10-
"github.com/hyperledger-labs/ccapi/chaincode"
11-
"github.com/hyperledger-labs/ccapi/common"
10+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/chaincode"
11+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/common"
1212
)
1313

1414
func Invoke(c *gin.Context) {

ccapi/handlers/invokeGateway.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"strings"
99

1010
"github.com/gin-gonic/gin"
11-
"github.com/hyperledger-labs/ccapi/chaincode"
12-
"github.com/hyperledger-labs/ccapi/common"
11+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/chaincode"
12+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/common"
1313
"github.com/pkg/errors"
1414
)
1515

ccapi/handlers/invokeV1.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"strings"
99

1010
"github.com/gin-gonic/gin"
11-
"github.com/hyperledger-labs/ccapi/chaincode"
12-
"github.com/hyperledger-labs/ccapi/common"
11+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/chaincode"
12+
"github.com/hyperledger-labs/cc-tools-demo/ccapi/common"
1313
)
1414

1515
func InvokeV1(c *gin.Context) {

0 commit comments

Comments
 (0)