-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: increment deal amount #10
Conversation
x/subscription/keeper/msg_deal.go
Outdated
requester, err := sdk.AccAddressFromBech32(msg.Requester) | ||
if err != nil { | ||
return nil, errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "invalid requester address") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to beginning of the func
@@ -102,10 +116,20 @@ func (k msgServer) UpdateDeal(goCtx context.Context, msg *types.MsgUpdateDeal) ( | |||
} | |||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add short comment explaining that amount, start and end block can be 0 because they are optional params
x/subscription/keeper/msg_deal.go
Outdated
requester, err := sdk.AccAddressFromBech32(msg.Requester) | ||
if err != nil { | ||
return nil, errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "invalid requester address") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
begin of the function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.