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

go/governance: Add support for proposal metadata #5650

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

kostko
Copy link
Member

@kostko kostko commented Apr 21, 2024

No description provided.

Copy link

netlify bot commented Apr 21, 2024

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit 5e7b3ef
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-oasis-core/deploys/662646b1c2a0e60008326fd7

@kostko kostko force-pushed the kostko/feature/gov-proposal-names branch from 863740e to 7560aa3 Compare April 21, 2024 18:19
@kostko kostko marked this pull request as ready for review April 21, 2024 18:19
@kostko kostko force-pushed the kostko/feature/gov-proposal-names branch 2 times, most recently from 6a2ef0d to 5976573 Compare April 21, 2024 18:37
go/governance/api/api.go Show resolved Hide resolved
for i := 0; i < values.NumField(); i++ {
if !values.Field(i).IsNil() {
numProposals++
func (p *ProposalContent) ValidateBasic(params *ConsensusParameters) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
func (p *ProposalContent) ValidateBasic(params *ConsensusParameters) error {
func (p *ProposalContent) ValidateBasic(allowMetadata bool) error {

Easier to test.

go/governance/api/api.go Outdated Show resolved Hide resolved
@kostko kostko force-pushed the kostko/feature/gov-proposal-names branch from 5976573 to 5e7b3ef Compare April 22, 2024 11:14
@kostko kostko enabled auto-merge April 22, 2024 11:15
@kostko kostko merged commit 9c0ef31 into master Apr 22, 2024
5 checks passed
@kostko kostko deleted the kostko/feature/gov-proposal-names branch April 22, 2024 11:42
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