github.com/cosmos/cosmos-sdk@v0.50.10/x/gov/types/config.go (about)

     1  package types
     2  
     3  // Config is a config struct used for intialising the gov module to avoid using globals.
     4  type Config struct {
     5  	// MaxMetadataLen defines the maximum proposal metadata length.
     6  	MaxMetadataLen uint64
     7  }
     8  
     9  // DefaultConfig returns the default config for gov.
    10  func DefaultConfig() Config {
    11  	return Config{
    12  		MaxMetadataLen: 255,
    13  	}
    14  }