mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
Fix typo in code comment (#442)
Signed-off-by: sukill <ckdrms622@gmail.com>
This commit is contained in:
parent
6d043af487
commit
9db8164f04
1 changed files with 16 additions and 16 deletions
|
|
@ -157,7 +157,7 @@ func (s *SmartContract) SubmitBid(ctx contractapi.TransactionContextInterface, a
|
|||
}
|
||||
|
||||
// get the auction from public state
|
||||
auction, err := s.QueryAuction(ctx,auctionID)
|
||||
auction, err := s.QueryAuction(ctx, auctionID)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to get auction from public state %v", err)
|
||||
}
|
||||
|
|
@ -258,7 +258,7 @@ func (s *SmartContract) RevealBid(ctx contractapi.TransactionContextInterface, a
|
|||
}
|
||||
|
||||
// get auction from public state
|
||||
auction, err := s.QueryAuction(ctx,auctionID)
|
||||
auction, err := s.QueryAuction(ctx, auctionID)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to get auction from public state %v", err)
|
||||
}
|
||||
|
|
@ -312,7 +312,7 @@ func (s *SmartContract) RevealBid(ctx contractapi.TransactionContextInterface, a
|
|||
Bidder string `json:"bidder"`
|
||||
}
|
||||
|
||||
// unmarshal bid imput
|
||||
// unmarshal bid input
|
||||
var bidInput transientBidInput
|
||||
err = json.Unmarshal(transientBidJSON, &bidInput)
|
||||
if err != nil {
|
||||
|
|
@ -359,7 +359,7 @@ func (s *SmartContract) RevealBid(ctx contractapi.TransactionContextInterface, a
|
|||
func (s *SmartContract) CloseAuction(ctx contractapi.TransactionContextInterface, auctionID string) error {
|
||||
|
||||
// get auction from public state
|
||||
auction, err := s.QueryAuction(ctx,auctionID)
|
||||
auction, err := s.QueryAuction(ctx, auctionID)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to get auction from public state %v", err)
|
||||
}
|
||||
|
|
@ -399,7 +399,7 @@ func (s *SmartContract) CloseAuction(ctx contractapi.TransactionContextInterface
|
|||
func (s *SmartContract) EndAuction(ctx contractapi.TransactionContextInterface, auctionID string) error {
|
||||
|
||||
// get auction from public state
|
||||
auction, err := s.QueryAuction(ctx,auctionID)
|
||||
auction, err := s.QueryAuction(ctx, auctionID)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to get auction from public state %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue