ContractRoles.revoke() method
Call this to revoke a role from a specific address.
Example
await contract.roles.revoke(
"minter",
"0x1234567890123456789012345678901234567890",
);
Signature:
revoke(role: TRole, address: string): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
role | TRole | The Role to revoke |
address | string | The address to revoke the role from |
Returns:
Promise<TransactionResult>
The transaction receipt
Exceptions
If you are trying to revoke does not exist on the module this will throw an error.
Remarks
-- Caution --
This will let you remove yourself from the role, too. If you remove yourself from the admin role, you will no longer be able to administer the contract. There is no way to recover from this.