-
Notifications
You must be signed in to change notification settings - Fork 411
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 proposal instantiate 2 #1106
Add proposal instantiate 2 #1106
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1106 +/- ##
==========================================
- Coverage 59.95% 59.52% -0.43%
==========================================
Files 54 54
Lines 7406 7563 +157
==========================================
+ Hits 4440 4502 +62
- Misses 2641 2730 +89
- Partials 325 331 +6
|
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.
👍 This looks great! Thanks a lot for the PR! 🥇
If you would run make format
, then you can get rid of the unrelated protobuf changes.
I would like to to tag v0.30.0 final on main in the next days. I would keep your PR open to merge asap for v0.31
@@ -21,4 +21,5 @@ var ProposalHandlers = []govclient.ProposalHandler{ | |||
govclient.NewProposalHandler(cli.ProposalUnpinCodesCmd, rest.UnpinCodeProposalHandler), | |||
govclient.NewProposalHandler(cli.ProposalUpdateInstantiateConfigCmd, rest.UpdateInstantiateConfigProposalHandler), | |||
govclient.NewProposalHandler(cli.ProposalStoreAndInstantiateContractCmd, rest.EmptyRestHandler), | |||
govclient.NewProposalHandler(cli.ProposalInstantiateContract2Cmd, rest.EmptyRestHandler), |
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.
👍 easy to miss
} | ||
} | ||
|
||
_, data, err := k.Instantiate2(ctx, p.CodeID, runAsAddr, adminAddr, p.Msg, p.Label, p.Funds, p.Salt, p.FixMsg) |
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.
:thu
@@ -34,6 +35,7 @@ var DisableAllProposals []ProposalType | |||
var EnableAllProposals = []ProposalType{ | |||
ProposalTypeStoreCode, | |||
ProposalTypeInstantiateContract, | |||
ProposalTypeInstantiateContract2, |
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.
👍
require.Len(t, em.Events()[2].Attributes, 1) | ||
require.NotEmpty(t, em.Events()[2].Attributes[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.
good test
x/wasm/types/authz.pb.go
Outdated
@@ -5,25 +5,21 @@ package types | |||
|
|||
import ( | |||
fmt "fmt" | |||
io "io" |
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 run make format
or make proto-all
when you built from protobuf.
}), | ||
expErr: true, | ||
}, | ||
"init with empty salt": { |
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.
👍 good test cases
m(p) | ||
} | ||
return p | ||
} |
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.
👍 very helpful
Thank a lot for your reviews :3 |
Kudos, SonarCloud Quality Gate passed! |
Close #1062