Skip to content

Commit

Permalink
update with damian suggest
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanhNhann committed Oct 25, 2023
1 parent 96015bd commit a10b1c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testing/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ func ParseProposalIDFromEvents(events []abci.Event) (uint64, error) {
for _, event := range events {
for _, attribute := range event.Attributes {
if attribute.Key == "proposal_id" {
proposalID, err := strconv.ParseUint(attribute.Value, 10, 64)
return proposalID, err
return strconv.ParseUint(attribute.Value, 10, 64)
}
}
}
Expand Down

0 comments on commit a10b1c2

Please sign in to comment.