mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-25 11:05:10 +00:00
Update contract.go
This commit is contained in:
parent
41717d76f2
commit
a91c91b7cf
1 changed files with 2 additions and 2 deletions
|
|
@ -417,10 +417,10 @@ func (s *SmartContract) BatchTransferFrom(ctx contractapi.TransactionContextInte
|
||||||
return emitTransferBatch(ctx, transferBatchEvent)
|
return emitTransferBatch(ctx, transferBatchEvent)
|
||||||
}
|
}
|
||||||
|
|
||||||
// BatchTransferFromMultiRecipient transfers multiple tokens from sender account to multiple recipient accounts
|
// BatchTransferToMultiRecipient transfers multiple tokens from sender account to multiple recipient accounts
|
||||||
// recipient account must be a valid clientID as returned by the ClientID() function
|
// recipient account must be a valid clientID as returned by the ClientID() function
|
||||||
// This function triggers a TransferBatchMultiRecipient event
|
// This function triggers a TransferBatchMultiRecipient event
|
||||||
func (s *SmartContract) BatchTransferFromMultiRecipient(ctx contractapi.TransactionContextInterface, sender string, recipients []string, ids []uint64, amounts []uint64) error {
|
func (s *SmartContract) BatchTransferToMultiRecipient(ctx contractapi.TransactionContextInterface, sender string, recipients []string, ids []uint64, amounts []uint64) error {
|
||||||
|
|
||||||
//check if contract has been intilized first
|
//check if contract has been intilized first
|
||||||
initialized, err := checkInitialized(ctx)
|
initialized, err := checkInitialized(ctx)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue