Skip to content

Conversation

@ANISH-SR
Copy link
Contributor

Summary of Changes

  • Added a status guard to allow rejection only when iface.status == Pending.
  • Returns DoubleZeroError::InvalidStatus for all other states.
  • If the interface is Pending, the existing flow remains unchanged:
    • Set status to Rejected.
    • Write updated interface back to the device account.
  • No other logic or account checks were modified.

Testing Verification

  • All rust checks green.
  • All linting checks green.

Closes #2231

Copy link
Contributor

@karl-dz karl-dz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ANISH-SR sorry for only getting to this PR until now.

Would you be able to add a simple test to verify that this check works? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In RejectDeviceInterface, verify that iface.status == Pending

2 participants