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 instantiate2 proposal cli command #1934

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

chipshort
Copy link
Collaborator

No description provided.

Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 41 lines in your changes missing coverage. Please review.

Project coverage is 54.31%. Comparing base (76c0c06) to head (fae5fc2).
Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1934      +/-   ##
==========================================
- Coverage   54.42%   54.31%   -0.11%     
==========================================
  Files          65       65              
  Lines        9976     9995      +19     
==========================================
  Hits         5429     5429              
- Misses       3992     4011      +19     
  Partials      555      555              
Files Coverage Δ
x/wasm/client/cli/gov_tx.go 12.29% <0.00%> (-0.40%) ⬇️

cmd := &cobra.Command{
Use: "instantiate-contract-2 [code_id_int64] [json_encoded_init_args] --authority [address] --label [text] --title [text] --summary [text] --admin [address,optional] --amount [coins,optional]",
Use: "instantiate-contract-2 [code_id_int64] [json_encoded_init_args] [salt] --authority [address] --label [text] --title [text] " +
Copy link
Member

Choose a reason for hiding this comment

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

In build-address this is called [salt-hex-encoded]. Not sure if that is an elegant way to name those arguments but I think it's important for the user to know the encoding.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But hex is only the default here. You can change the encoding using the --ascii, --b64 and --hex flags.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I see. Then let's keep it as is

Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

Thanks!

@chipshort chipshort merged commit dd21e64 into CosmWasm:main Jul 17, 2024
16 of 17 checks passed
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