Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

214 2nd new unwanted function removal #289

Merged

Conversation

zaryab2000
Copy link
Collaborator

@zaryab2000 zaryab2000 commented Feb 9, 2024

This PR mainly includes 3 important changes:

  • Removal of unwanted function from Comm Contract
  • Removal of unwanted function from Core Contract
  • Deprecate the support of EPNS Alerter (Zero-Address) channel

List of changes if EPNS Alerter support is removed
1. Modifiers
1. onlyChannelOwner
2. Functions
1. _createChannel → Line 289 :: Remove auto-supscription completely ✅
2. destroyTimeBoundChannel → Line 322 :: Remove auto-unsubscription completely ✅
3. getChannelVerfication → Line 437 :: remove address (0x0) ✅

**Comm Function:**

1. _checkNotifReq() → Line 415 :: Remove notification requirement support for alerter ✅

This PR resolves #214 and #282

@zaryab2000 zaryab2000 added the priority-2 Medium priority label Feb 9, 2024
@zaryab2000 zaryab2000 marked this pull request as ready for review February 14, 2024 12:06
@zaryab2000 zaryab2000 requested a review from Zartaj0 February 14, 2024 12:06
@zaryab2000 zaryab2000 self-assigned this Feb 14, 2024
@zaryab2000 zaryab2000 added enhancement New feature or request priority-1 Indicates highest priority and removed priority-2 Medium priority labels Feb 14, 2024
@@ -94,7 +94,6 @@ contract PushCoreV2_5 is Initializable, PushCoreStorageV1_5, PausableUpgradeable
if (
!(
(channels[_channel].channelState == 1 && msg.sender == _channel)
|| (msg.sender == pushChannelAdmin && _channel == address(0x0))
Copy link
Member

Choose a reason for hiding this comment

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

This line is not removed for the temp contract.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is now resolved @Zartaj0 . Thanks

@zaryab2000 zaryab2000 merged commit c638fe4 into pushContracts-v2.5.0-dev Feb 19, 2024
@zaryab2000 zaryab2000 deleted the 214_2ndNew_unwantedFunctionRemoval branch February 19, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-1 Indicates highest priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants