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
(k msgServer) PollVote function is missing error handling logic for properties.MaxProposalPollOptionSize and utf8string.NewString(v).IsASCII() when user provide non-existing custom values.
Duration logic between proposal and poll should be normalized. We prioritise simple logic and let abstraction work to front-end. Hence current Poll duration logic, where user can provide any duration in a form of string, should be switched for precise end-date as unix timestamp like for Proposals.
There is no min-max bounds on poll duration value, there should be. Polls can use existing minimum_proposal_end_time network property. Additionally a new network property maximum_proposal_end_time should be created and enforced both for polls and proposals because KIRA will potentially be trimming historical state in the future which could break some L2 app logic.
128 as default value for network property on option count limit seem way too high
(k msgServer) PollVote
function is missing error handling logic forproperties.MaxProposalPollOptionSize
andutf8string.NewString(v).IsASCII()
when user provide non-existing custom values.sekai/x/gov/keeper/msg_server.go
Lines 263 to 266 in 7027803
Wrong error type here
sekai/x/gov/keeper/msg_server.go
Lines 165 to 167 in 7027803
Duration logic between proposal and poll should be normalized. We prioritise simple logic and let abstraction work to front-end. Hence current Poll duration logic, where user can provide any duration in a form of string, should be switched for precise end-date as unix timestamp like for Proposals.
sekai/x/gov/keeper/msg_server.go
Lines 173 to 176 in 7027803
with a simple check like below :
sekai/x/gov/keeper/msg_server.go
Lines 104 to 106 in 7027803
There is no min-max bounds on poll duration value, there should be. Polls can use existing
minimum_proposal_end_time
network property. Additionally a new network propertymaximum_proposal_end_time
should be created and enforced both for polls and proposals because KIRA will potentially be trimming historical state in the future which could break some L2 app logic.128
as default value for network property on option count limit seem way too highsekai/x/gov/types/genesis.go
Line 146 in 7027803
The text was updated successfully, but these errors were encountered: