You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -60,11 +60,11 @@ The following tasks take you through the process of building a pipeline that wil
60
60
- Test your chaincode using the fabric REST API.
61
61
- Repeat.
62
62
63
-
1. Fork this repository to your GitHub account. This can be accomplished quickly by scrolling up and clicking the **Fork** button at the top of this repository.
63
+
1. Fork this repository to your GitHub account. This can be accomplished quickly by scrolling up and clicking the __Fork__ button at the top of this repository.
64
64
65
65

66
66
67
-
"Forking" the repository means creating a copy of this repository under your GitHub account. Note that the fork will fork the entire repository including all the branches. Toggle the **Branch** button on the left to see the available branches.
67
+
"Forking" the repository means creating a copy of this repository under your GitHub account. Note that the fork will fork the entire repository including all the branches. Toggle the __Branch__ button on the left to see the available branches.
68
68
69
69

70
70
@@ -101,16 +101,18 @@ The following tasks take you through the process of building a pipeline that wil
101
101
# See what files have changed locally. You should see chaincode_start.go
102
102
git status
103
103
# Stage all changes in the local repository for commit
104
-
git add -all
104
+
git add --all
105
105
# Commit all staged changes. Insert a short description after the -m argument
106
106
git commit -m "Compiled my code"
107
107
# Push local commits back to https://github.com/<YOUR_GITHUB_ID_HERE>/learn-chaincode/
108
108
git push
109
+
```
109
110
110
111
In order to turn a piece of Go code into chaincode, all you need to do is implement the chaincode shim interface. The three functions you have to implement are **Init**, **Invoke**, and **Query**. All three functions have the same prototype; they take in a 'stub', which is what you use to read from and write to the ledger, a function name, and an array of strings. The main difference between the functions is when they will be called. In this tutorial you will be building a chaincode to create generic assets.
111
112
112
113
### Dependencies
113
114
115
+
>>>>>>> 4fea23b9bedde404858f7ee58cd33f2f7433dd4b
114
116
The `import` statement lists a few dependencies that you will need for your chaincode to build successfully.
115
117
116
118
-`fmt` - contains `Println` for debugging/logging.
0 commit comments