Skip to content

Commit

Permalink
Fix InvalidState check
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfornax committed Sep 25, 2024
1 parent 9ceb368 commit f3a58f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocketpool-daemon/api/odao/execute-proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (c *oracleDaoExecuteProposalsContext) PrepareData(dataBatch *types.DataBatc
data := &dataBatch.Batch[i]
state := prop.State.Formatted()
data.DoesNotExist = (c.ids[i] > c.dpm.ProposalCount.Formatted())
data.InvalidState = !(state == rptypes.ProposalState_Pending || state == rptypes.ProposalState_Active)
data.InvalidState = state == rptypes.ProposalState_Pending || state == rptypes.ProposalState_Active
data.CanExecute = !(data.DoesNotExist || data.InvalidState)

// Get the tx
Expand Down

0 comments on commit f3a58f9

Please sign in to comment.