Fix typo in code comment (#442)

Signed-off-by: sukill <ckdrms622@gmail.com>
This commit is contained in:
cena 2021-04-28 15:02:30 +09:00 committed by GitHub
parent 6d043af487
commit 9db8164f04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,7 @@ func (s *SmartContract) SubmitBid(ctx contractapi.TransactionContextInterface, a
} }
// get the auction from public state // get the auction from public state
auction, err := s.QueryAuction(ctx,auctionID) auction, err := s.QueryAuction(ctx, auctionID)
if err != nil { if err != nil {
return fmt.Errorf("failed to get auction from public state %v", err) 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 // get auction from public state
auction, err := s.QueryAuction(ctx,auctionID) auction, err := s.QueryAuction(ctx, auctionID)
if err != nil { if err != nil {
return fmt.Errorf("failed to get auction from public state %v", err) 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"` Bidder string `json:"bidder"`
} }
// unmarshal bid imput // unmarshal bid input
var bidInput transientBidInput var bidInput transientBidInput
err = json.Unmarshal(transientBidJSON, &bidInput) err = json.Unmarshal(transientBidJSON, &bidInput)
if err != nil { 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 { func (s *SmartContract) CloseAuction(ctx contractapi.TransactionContextInterface, auctionID string) error {
// get auction from public state // get auction from public state
auction, err := s.QueryAuction(ctx,auctionID) auction, err := s.QueryAuction(ctx, auctionID)
if err != nil { if err != nil {
return fmt.Errorf("failed to get auction from public state %v", err) 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 { func (s *SmartContract) EndAuction(ctx contractapi.TransactionContextInterface, auctionID string) error {
// get auction from public state // get auction from public state
auction, err := s.QueryAuction(ctx,auctionID) auction, err := s.QueryAuction(ctx, auctionID)
if err != nil { if err != nil {
return fmt.Errorf("failed to get auction from public state %v", err) return fmt.Errorf("failed to get auction from public state %v", err)
} }