-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add transient map arg to chaincode invoke&query #195
Conversation
Signed-off-by: fthrslntgy <[email protected]>
@sownak @dviejokfs Transient map is necessary for some common chaincodes like https://github.com/hyperledger/fabric-samples/tree/main/auction-simple/chaincode-go. I need this pr for develop auction rest API application with golang. Could you please speed up review pr process? |
Thanks for the PR @fthrslntgy, can you also add an example of how to pass the |
Sure, where should i add examples? I couldn't find example or test codes in |
You can add in the PR description. |
Its done |
@fthrslntgy can you check the failing testcase? |
i think i fixed it with commit a855d4a |
Signed-off-by: fthrslntgy <[email protected]>
What this PR does / why we need it:
In fabric peer chaincode (https://github.com/hyperledger/fabric/blob/main/internal/peer/chaincode), users can set transient map with argument
--transient
.In code -> https://github.com/hyperledger/fabric/blob/58b6dc3651e99db7e3eaa61285cac4c5b3cdef4d/internal/peer/chaincode/common.go#L579
There is no equivalent parameter in
kubectl hlf chaincode
. This pr solves that.Which issue(s) this PR fixes:
There is not any issue related with this problem.
Does this PR introduce a user-facing change?
Yes, users can set transient map in chaincode query&invoke comamnds.
Usage:
It can be used with -t parameter in
kubectl hlf chaincode invoke/query
commands.Example for creating bid in https://github.com/hyperledger/fabric-samples/blob/main/auction-simple chaincode: