mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 23:24:25 -08:00
regenerate auction type without on-chain bidding
This commit is contained in:
@@ -23,13 +23,13 @@ func (k msgServer) NewAuction(goCtx context.Context, msg *types.MsgNewAuction) (
|
||||
Index: index,
|
||||
Name: msg.Name,
|
||||
Description: msg.Description,
|
||||
Bids: []*types.Bid{},
|
||||
TopBid: new(types.Bid),
|
||||
}
|
||||
|
||||
k.Keeper.SetAuction(ctx, auction)
|
||||
next.AuctionId++
|
||||
|
||||
k.Keeper.SetNextAuction(ctx, types.NextAuction{next.AuctionId})
|
||||
k.Keeper.SetNextAuction(ctx, types.NextAuction{AuctionId: next.AuctionId})
|
||||
|
||||
return &types.MsgNewAuctionResponse{
|
||||
AuctionId: strconv.FormatUint(next.AuctionId, 10),
|
||||
|
||||
Reference in New Issue
Block a user