Skip to content

Commit d6e9400

Browse files
committed
chore: do not initialize price with zero value
1 parent 9e6e4f1 commit d6e9400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/node/keeper/msg_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (k *Keeper) HandleMsgStartSession(ctx sdk.Context, msg *v3.MsgStartSessionR
220220
}
221221

222222
// Determine appropriate price based on requested denomination and service type
223-
price := v1base.ZeroPrice(msg.MaxPrice.Denom)
223+
var price v1base.Price
224224
if msg.Gigabytes != 0 {
225225
price, found = node.GigabytePrice(msg.MaxPrice.Denom)
226226
if !found {

0 commit comments

Comments
 (0)