-
Notifications
You must be signed in to change notification settings - Fork 410
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
Add wasm command to support v1 gov proposals #1326
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
When trying to test a submission, I noticed that the new command does not support --keyring-backend
.
Error: unknown flag: --keyring-backend
return fmt.Errorf("authority: %s", err) | ||
} | ||
|
||
if len(authority) == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here and others: it would be nice if we would fetch the default authority like the wizard does. I would not expect the users to know the address.
@@ -57,7 +57,7 @@ func ValidateSalt(salt []byte) error { | |||
// ValidateVerificationInfo ensure source, builder and checksum constraints | |||
func ValidateVerificationInfo(source, builder string, codeHash []byte) error { | |||
// if any set require others to be set | |||
if len(source) != 0 || len(builder) != 0 || codeHash != nil { | |||
if len(source) != 0 || len(builder) != 0 || len(codeHash) != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comment on the static address and #1356 .
Other than this, the PR looks very good now. 👍
x/wasm/client/cli/gov_tx.go
Outdated
} | ||
|
||
if len(authority) == 0 { | ||
authority = sdk.AccAddress(address.Module("gov")).String() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was expecting that the address would be queried but I guess it is alright to set it for the client already.
While the address can be changed in the keeper(s) on init, it can not be modified on the CLI. I have opened #1356 to have a public var instead. Please 👁️
Minor tweak and test files
Resolves #1301
Implemented option c) A new wasm command could provide a similar interface as v1beta1 proposals but with a v1 message send