Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

PTP-481 Add Admin related functions #39

Merged
merged 4 commits into from
Jun 3, 2022
Merged

PTP-481 Add Admin related functions #39

merged 4 commits into from
Jun 3, 2022

Conversation

efecarranza
Copy link
Contributor

Changelog

Add admin related functions: addAdmin, removeAdmin, revokeAdmin, isAdmin.
Add e2e tests.
Add unit tests.

Copy link
Contributor

@kalote kalote left a comment

Choose a reason for hiding this comment

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

return await

}

try {
return this.#contractDeployed.grantRole(this.ADMIN_ROLE, address);
Copy link
Contributor

Choose a reason for hiding this comment

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

return await

}

try {
return this.#contractDeployed.revokeRole(this.ADMIN_ROLE, address);
Copy link
Contributor

Choose a reason for hiding this comment

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

return await

}

try {
return this.#contractDeployed.renounceRole(this.ADMIN_ROLE, address);
Copy link
Contributor

Choose a reason for hiding this comment

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

return await

@efecarranza
Copy link
Contributor Author

@kalote updated.

@sonarcloud
Copy link

sonarcloud bot commented Jun 2, 2022

@kalote
Copy link
Contributor

kalote commented Jun 3, 2022

As this feature is similar to #38, i merge it without 2 reviews.

@kalote kalote merged commit d9264ec into main Jun 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants