Skip to content

Commit

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

// Delete erases asset from world state
// Delete erases asset from world state and checks for all necessary permissions.
// A asset cannot be deleted if other asset references it
// The asset is not deleted from the blockchain
func (a *Asset) Delete(stub shim.ChaincodeStubInterface) ([]byte, error) {
var err error

Expand Down

0 comments on commit a777444

Please sign in to comment.