Add service provider auctions #59
@ -540,9 +540,11 @@ func (k Keeper) RevealBid(ctx sdk.Context, msg auctiontypes.MsgRevealBid) (*auct
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Lock bid amount.
|
// Lock bid amount.
|
||||||
sdkErr := k.bankKeeper.SendCoinsFromAccountToModule(ctx, signerAddress, auctiontypes.ModuleName, sdk.NewCoins(bidAmount))
|
if auction.Kind == auctiontypes.AuctionKindVickrey {
|
||||||
if sdkErr != nil {
|
sdkErr := k.bankKeeper.SendCoinsFromAccountToModule(ctx, signerAddress, auctiontypes.ModuleName, sdk.NewCoins(bidAmount))
|
||||||
return nil, sdkErr
|
if sdkErr != nil {
|
||||||
|
return nil, sdkErr
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update bid.
|
// Update bid.
|
||||||
|
Loading…
Reference in New Issue
Block a user