Skip to content

Commit

Permalink
adds additional info to update function
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPedroAssis authored and bandreghetti committed Mar 26, 2021
1 parent 54a113f commit adfb942
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (
"github.com/hyperledger/fabric/core/chaincode/shim"
)

// Update receives a map[string]interface{} with key/vals to update in asset
// Update receives a map[string]interface{} with key/vals to update the asset value in the wolrd state
// The old asset is still on the blockchain history
func (a *Asset) Update(stub shim.ChaincodeStubInterface, update map[string]interface{}) (map[string]interface{}, error) {
// Fetch asset properties
assetTypeDef := a.Type()
Expand Down

0 comments on commit adfb942

Please sign in to comment.