Skip to content

Comments

feat: implement emergency contact management with setter and getter functions#127

Merged
Akshola00 merged 2 commits intoWeb3Novalabs:mainfrom
No-bodyq:implement_set_emergency_contact
Feb 20, 2026
Merged

feat: implement emergency contact management with setter and getter functions#127
Akshola00 merged 2 commits intoWeb3Novalabs:mainfrom
No-bodyq:implement_set_emergency_contact

Conversation

@No-bodyq
Copy link
Contributor

Emergency Contact Tracking

Implements set_emergency_contact() and get_emergency_contact() functions to track an address for emergency notifications.

Features

  • Admin-only setter for emergency contact address
  • Instance storage for reliable persistence
  • Event publishing on contact updates
  • 4 integration tests verifying storage and updates
  • Proper error handling for uninitialized state

Test Coverage

  • Campaign status: all 4 states + edge cases
  • Emergency contact: storage, updates, initialization
  • Full admin authorization checks

closes #80

@No-bodyq
Copy link
Contributor Author

Kindly review @Akshola00

@Akshola00 Akshola00 merged commit 4fc7b65 into Web3Novalabs:main Feb 20, 2026
1 check passed
Copy link
Contributor

@Akshola00 Akshola00 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution
Looks good to me

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.

[FUNCTION] implement set_emergency_contact

2 participants