Skip to content

Commit

Permalink
Update header version
Browse files Browse the repository at this point in the history
  • Loading branch information
bandreghetti committed Jul 28, 2021
1 parent 72b577c commit 9fb32d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestMain(m *testing.M) {

tx.InitHeader(tx.Header{
Name: "CC Tools Test",
Version: "v0.7.0",
Version: "v0.7.1",
Colors: map[string][]string{
"@default": {"#4267B2", "#34495E", "#ECF0F1"},
},
Expand Down
4 changes: 2 additions & 2 deletions test/tx_getHeader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func TestGetHeader(t *testing.T) {
stub := mock.NewMockStub("org1MSP", new(testCC))

expectedResponse := map[string]interface{}{
"ccToolsVersion": "v0.7.0",
"ccToolsVersion": "v0.7.1",
"colors": []interface{}{
"#4267B2",
"#34495E",
Expand All @@ -20,7 +20,7 @@ func TestGetHeader(t *testing.T) {
"name": "CC Tools Test",
"orgMSP": "org1MSP",
"orgTitle": "CC Tools Demo",
"version": "v0.7.0",
"version": "v0.7.1",
}
err := invokeAndVerify(stub, "getHeader", nil, expectedResponse, 200)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion transactions/getHeader.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var header Header

func InitHeader(h Header) {
header = h
header.CCToolsVersion = "v0.7.0"
header.CCToolsVersion = "v0.7.1"
}

// GetHeader returns data in CCHeader
Expand Down

0 comments on commit 9fb32d9

Please sign in to comment.