regenerate auction type without on-chain bidding

This commit is contained in:
2022-08-30 19:33:47 +00:00
parent 87e29c3dcc
commit 7ecb5a9fe8
5 changed files with 35 additions and 34 deletions

View File

@@ -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),