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

fix: msg multihop validation #ntrn-157 #357

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

NeverHappened
Copy link
Contributor

@NeverHappened NeverHappened self-assigned this Nov 8, 2023
@NeverHappened NeverHappened changed the base branch from main to merge_duality_neutron November 8, 2023 12:04
@@ -70,6 +70,20 @@ func (msg *MsgMultiHopSwap) ValidateBasic() error {
return ErrMissingMultihopRoute
}

for _, route := range msg.Routes {
Copy link
Contributor

Choose a reason for hiding this comment

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

A bit of a nitpick, but we're already iterating through the routes below, would be a bit cleaner to combine all checks into a single loop.

@pr0n00gler pr0n00gler merged commit 8e1018d into merge_duality_neutron Nov 14, 2023
5 of 6 checks passed
@pr0n00gler pr0n00gler deleted the fix/msg-multihop-validation branch May 9, 2024 18:16
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.

3 participants