Skip to content

🐛 [BUG] - AddDelegate and RemoveDelegate emits event even if delegate is already added or not present respectively #438

@0xNilesh

Description

@0xNilesh

Expected Behaviour

AddDelegate should only emit the event if delegate was not added earlier
and similarly removeDelegate should only emit the event if delegate was added earlier

Current Behaviour

Both fn just emits the event

Reproduction steps

1. Add a delegate
2. Call addDelegate again

Screenshots

![DESCRIPTION](LINK.png)

POC if available

No response

Contract Name

Comm Contract

Chains

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority-2Medium priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions