hyperledger / fabric-sdk-go

https://wiki.hyperledger.org/display/fabric
Apache License 2.0
911 stars 508 forks source link

Add transient map support for the gateway client #248

Closed jimthematrix closed 1 year ago

codecov[bot] commented 1 year ago

Codecov Report

Merging #248 (892d175) into main (7af45ce) will decrease coverage by 0.00%. The diff coverage is 42.85%.

@@            Coverage Diff             @@
##             main     #248      +/-   ##
==========================================
- Coverage   76.22%   76.22%   -0.01%     
==========================================
  Files         193      193              
  Lines       14103    14110       +7     
==========================================
+ Hits        10750    10755       +5     
- Misses       2385     2387       +2     
  Partials      968      968              
Impacted Files Coverage Δ
pkg/gateway/transaction.go 85.71% <42.85%> (-2.68%) :arrow_down:
pkg/util/concurrent/lazycache/lazycache.go 90.29% <0.00%> (+1.94%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

andrew-coleman commented 1 year ago

Hi Jim, there's no need for this addition. Sending transient data is already supported by specifying WithTransient() as an option on the contract.CreateTransaction() method. See the example here: https://pkg.go.dev/github.com/hyperledger/fabric-sdk-go/pkg/gateway#WithTransient