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

Add events to MultiRole contract #1262

Merged
merged 3 commits into from Apr 20, 2020
Merged

Add events to MultiRole contract #1262

merged 3 commits into from Apr 20, 2020

Conversation

nicholaspai
Copy link
Member

Resolves #1222
Signed-off-by: Nick Pai npai.nyc@gmail.com

Signed-off-by: Nick Pai <npai.nyc@gmail.com>
// Remove shared member.
const removeSharedResult = await multiRole.removeMember("2", account4, { from: account1 });
truffleAssert.eventEmitted(removeSharedResult, "RemovedSharedMember", ev => {
return ev.roleId.toString() == "2", ev.oldMember == account4, ev.manager == account1;
Copy link
Contributor

Choose a reason for hiding this comment

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

What does the comma do here, as opposed to &&?

Copy link
Member Author

Choose a reason for hiding this comment

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

Weird, that was produced via linting. I'm testing its behavior locally now

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, this was not the linter's fault, it was my fault I accidentally replaced all &&'s with commas. Good catch @ptare

Signed-off-by: Nick Pai <npai.nyc@gmail.com>
Signed-off-by: Nick Pai <npai.nyc@gmail.com>
@nicholaspai nicholaspai merged commit ee52c97 into master Apr 20, 2020
@nicholaspai nicholaspai deleted the multirole-events branch April 20, 2020 19:05
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.

Add events to MultiRole
3 participants