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

Added cli to fetch ft & nft params #500

Merged
merged 5 commits into from
May 22, 2023

Conversation

vertex451
Copy link
Contributor

@vertex451 vertex451 commented May 19, 2023

This change is Reviewable

wojtek-coreum
wojtek-coreum previously approved these changes May 19, 2023
Copy link
Collaborator

@wojtek-coreum wojtek-coreum left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dzmitryhil, @miladz68, and @ysv)

Copy link
Contributor

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @miladz68, @silverspase, and @ysv)


x/asset/ft/client/cli/query.go line 288 at r1 (raw file):

	cmd := &cobra.Command{
		Use:   "params",
		Short: "Query the current assetft parameters",

assetft -> use types.ModuleName instead (same for all text).


x/asset/ft/client/cli/query_test.go line 99 at r1 (raw file):

	requireT.NoError(ctx.Codec.UnmarshalJSON(buf.Bytes(), &resp))

	expectedIssueFee := sdk.Coin{Denom: constant.DenomDev, Amount: sdk.NewInt(10_000_000)}

Why it's constant? You should use iether the default values from types, or don't check it at all (same for the NFT test).


x/asset/nft/client/cli/query.go line 254 at r1 (raw file):

	cmd := &cobra.Command{
		Use:   "params",
		Short: "Query the current assetnft parameters",

assetnft -> use types.ModuleName instead (same for all text).

miladz68
miladz68 previously approved these changes May 19, 2023
Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @silverspase and @ysv)

Copy link
Contributor Author

@vertex451 vertex451 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @dzmitryhil and @ysv)


x/asset/ft/client/cli/query.go line 288 at r1 (raw file):

Previously, dzmitryhil (Dzmitry Hil) wrote…

assetft -> use types.ModuleName instead (same for all text).

Done


x/asset/ft/client/cli/query_test.go line 99 at r1 (raw file):

Previously, dzmitryhil (Dzmitry Hil) wrote…

Why it's constant? You should use iether the default values from types, or don't check it at all (same for the NFT test).

I cannot find the place in the code where IssueFee is set to 10_000_000, could you please point out the place in the code?


x/asset/nft/client/cli/query.go line 254 at r1 (raw file):

Previously, dzmitryhil (Dzmitry Hil) wrote…

assetnft -> use types.ModuleName instead (same for all text).

Done

Copy link
Contributor

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @silverspase and @ysv)


x/asset/ft/client/cli/query.go line 288 at r1 (raw file):

Previously, silverspase (Artem) wrote…

Done

Don't see the changes.

Copy link
Contributor Author

@vertex451 vertex451 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @dzmitryhil and @ysv)


x/asset/ft/client/cli/query.go line 288 at r1 (raw file):

Previously, dzmitryhil (Dzmitry Hil) wrote…

Don't see the changes.

Sorry, I've published it without pushing

@vertex451 vertex451 dismissed stale reviews from miladz68 and wojtek-coreum via 3e13999 May 22, 2023 06:57
Copy link
Contributor

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 4 files reviewed, 3 unresolved discussions (waiting on @miladz68, @silverspase, @wojtek-coreum, and @ysv)


x/asset/ft/client/cli/query_test.go line 99 at r1 (raw file):

Previously, silverspase (Artem) wrote…

I cannot find the place in the code where IssueFee is set to 10_000_000, could you please point out the place in the code?

It's in the genesis. I thought we had it in the type, resolved.

Copy link
Contributor

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 4 files reviewed, all discussions resolved (waiting on @miladz68, @wojtek-coreum, and @ysv)

Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ysv)

@vertex451 vertex451 merged commit 9ddf9bf into master May 22, 2023
@vertex451 vertex451 deleted the artem/add-cli-to-fetch-ft-nft-params branch May 22, 2023 08:23
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.

4 participants