Skip to content
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

Merged
merged 5 commits into from
Sep 26, 2024
Merged

Feat: increment deal amount #10

merged 5 commits into from
Sep 26, 2024

Conversation

JanLewDev
Copy link
Contributor

No description provided.

@JanLewDev JanLewDev marked this pull request as ready for review September 25, 2024 08:33
Comment on lines 88 to 90
requester, err := sdk.AccAddressFromBech32(msg.Requester)
if err != nil {
return nil, errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "invalid requester address")
Copy link
Member

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 {
Copy link
Member

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

Comment on lines 160 to 163
requester, err := sdk.AccAddressFromBech32(msg.Requester)
if err != nil {
return nil, errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "invalid requester address")
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

begin of the function

Copy link
Member

@d-roak d-roak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@d-roak d-roak merged commit 2b2ea0c into main Sep 26, 2024
@d-roak d-roak deleted the feat/incrementDealAmount branch October 8, 2024 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants