Skip to content

Commit 74f1a8b

Browse files
authored
fix: correct typo in function name WithGovSubMsgAuthZPropagated (#2220)
* fix: correct typo in function name WithGovSubMsgAuthZPropagated * fix: correct typo in function name WithGovSubMsgAuthZPropagated
1 parent ab68730 commit 74f1a8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

x/wasm/keeper/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ func WithAcceptedAccountTypesOnContractInstantiation(accts ...sdk.AccountI) Opti
175175
})
176176
}
177177

178-
// WitGovSubMsgAuthZPropagated overwrites the default gov authorization policy for sub-messages
179-
func WitGovSubMsgAuthZPropagated(entries ...types.AuthorizationPolicyAction) Option {
178+
// WithGovSubMsgAuthZPropagated overwrites the default gov authorization policy for sub-messages
179+
func WithGovSubMsgAuthZPropagated(entries ...types.AuthorizationPolicyAction) Option {
180180
x := make(map[types.AuthorizationPolicyAction]struct{}, len(entries))
181181
for _, e := range entries {
182182
x[e] = struct{}{}

x/wasm/keeper/options_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func TestConstructorOptions(t *testing.T) {
139139
},
140140
},
141141
"gov propagation": {
142-
srcOpt: WitGovSubMsgAuthZPropagated(types.AuthZActionInstantiate, types.AuthZActionMigrateContract),
142+
srcOpt: WithGovSubMsgAuthZPropagated(types.AuthZActionInstantiate, types.AuthZActionMigrateContract),
143143
verify: func(t *testing.T, k Keeper) {
144144
exp := map[types.AuthorizationPolicyAction]struct{}{
145145
types.AuthZActionInstantiate: {},

0 commit comments

Comments
 (0)