github.com/yimialmonte/fabric@v2.1.1+incompatible/core/handlers/decoration/decorator/decorator.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package decorator 8 9 import ( 10 "github.com/hyperledger/fabric-protos-go/peer" 11 "github.com/hyperledger/fabric/core/handlers/decoration" 12 ) 13 14 // NewDecorator creates a new decorator 15 func NewDecorator() decoration.Decorator { 16 return &decorator{} 17 } 18 19 type decorator struct { 20 } 21 22 // Decorate decorates a chaincode input by changing it 23 func (d *decorator) Decorate(proposal *peer.Proposal, input *peer.ChaincodeInput) *peer.ChaincodeInput { 24 return input 25 }