Skip to content

Commit

Permalink
Update warden/x/act/types/v1beta1/action.go
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Pitasi <antonio@pitasi.dev>
  • Loading branch information
artur-abliazimov and Pitasi authored Sep 9, 2024
1 parent a4e861f commit 716a3c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions warden/x/act/types/v1beta1/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func (a *Action) AddOrUpdateVote(ctx sdk.Context, participant string, voteType A
for i, v := range a.Votes {
if v.Participant == participant {
a.Votes[i].VoteType = voteType
a.Votes[i].VotedAt = ctx.BlockTime()
updated = true
break
}
Expand Down

0 comments on commit 716a3c0

Please sign in to comment.