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

launchpad/cli: sale and user position queries & msg validation fixes #1661

Merged
merged 8 commits into from
Jun 3, 2022
Merged

Conversation

harish551
Copy link

No description provided.

@harish551 harish551 requested a review from a team June 3, 2022 12:55
@github-actions github-actions bot added the C:CLI label Jun 3, 2022
Copy link
Contributor

@robert-zaremba robert-zaremba left a comment

Choose a reason for hiding this comment

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

pre-approving. let's remove duplicated examples.

@@ -184,6 +184,7 @@ func orderBeginBlockers() []string {
bech32ibctypes.ModuleName,
txfeestypes.ModuleName,
wasm.ModuleName,
launchpad.ModuleName,
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks!

if _, err := sdk.AccAddressFromBech32(msg.Sender); err != nil {
return errors.ErrInvalidRequest.Wrapf("Invalid sender address (%s)", msg.Sender)
}
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

oh, thanks for updating this!

Long: strings.TrimSpace(
fmt.Sprintf(`Finalize a launchpad sale :
Example:
$ %s finalize --sale-id=sale-id [flags]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
$ %s finalize --sale-id=sale-id [flags]

"treasury": "osmo1r85gjuck87f9hw7l2c30w3zh696xrq0lus0kq6"
"start-time": "2022-06-02T11:18:11.000Z",
"duration": "432000s",
"treasury": "osmo16phc92xevvcvswdew....cr46tn8pneshtsl8"
Copy link
Contributor

Choose a reason for hiding this comment

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

why adding the dots?

Copy link
Author

@harish551 harish551 Jun 3, 2022

Choose a reason for hiding this comment

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

@dayakarreddyn updated it .. may be for not using any full address in example
but i think it's okay even we use a valid address

should we use valid address ?

x/launchpad/client/cli/tx.go Outdated Show resolved Hide resolved
x/launchpad/client/cli/tx.go Outdated Show resolved Hide resolved
x/launchpad/client/cli/tx.go Outdated Show resolved Hide resolved
x/launchpad/client/cli/tx.go Outdated Show resolved Hide resolved
@robert-zaremba robert-zaremba merged commit 138ef16 into osmosis-labs:osmolbp Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants