You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but with TallyParams message in same file, quorum uses types.Dec as bytes.
// TallyParams defines the params for tallying votes on governance proposals.
message TallyParams {
// Minimum percentage of total stake needed to vote for a result to be
// considered valid.
bytes quorum = 1 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false,
(gogoproto.jsontag) = "quorum,omitempty"
];
How about unifying it? For external use, it seems better to use a string. Externally, we do not know of a custom type for deserializing a byte array.
Proposal
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Summary
Problem Definition
In
gov.proto
, weight usetypes.Dec
as string like belowbut with
TallyParams
message in same file,quorum
usestypes.Dec
as bytes.How about unifying it? For external use, it seems better to use a string. Externally, we do not know of a custom type for deserializing a byte array.
Proposal
For Admin Use
The text was updated successfully, but these errors were encountered: