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: move helper method out of generated file #101

Merged
merged 2 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* [\#89](https://github.com/Finschia/wasmd/pull/89) fill ContractInfo querier result's Updated field
* [\#90](https://github.com/Finschia/wasmd/pull/90) delete output in TestQueryContractsByCode
* [\#95](https://github.com/Finschia/wasmd/pull/95) add a test case to verify ContractInfo gets correct IBCPortID
* [\#101](https://github.com/Finschia/wasmd/pull/101) move helper method out of generated file

### Breaking Changes

Expand Down
11 changes: 11 additions & 0 deletions x/wasm/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,14 @@ func isSubset(super, sub []string) bool {
}
return matches == len(sub)
}

// AllAuthorizedAddresses returns the list of authorized addresses. Can be empty.
func (a AccessConfig) AllAuthorizedAddresses() []string {
switch a.Permission {
case AccessTypeAnyOfAddresses:
return a.Addresses
case AccessTypeOnlyAddress:
return []string{a.Address}
}
return []string{}
}
11 changes: 0 additions & 11 deletions x/wasm/types/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.