upgrade auction structure ton include denom + no owner in tx

This commit is contained in:
2022-09-01 04:49:24 +00:00
parent 9727e246ee
commit ed2061213e
9 changed files with 227 additions and 98 deletions

View File

@@ -24,8 +24,10 @@ func (k msgServer) NewAuction(goCtx context.Context, msg *types.MsgNewAuction) (
Index: index,
Name: msg.Name,
Description: msg.Description,
Best: new(types.Bid),
Deadline: uint64(ctx.BlockHeight()) + auctionconfig.AuctionTime,
// Best: new(types.Bid),
Deadline: uint64(ctx.BlockHeight()) + auctionconfig.AuctionTime,
Denom: msg.Denom,
Owner: msg.Creator,
}
k.Keeper.SetAuction(ctx, auction)