roleAdminChangedEvent

Creates an event object for the RoleAdminChanged event.

Example

import { getContractEvents } from "thirdweb";
import { roleAdminChangedEvent } from "thirdweb/extensions/permissions";
const events = await getContractEvents({
contract,
events: [
roleAdminChangedEvent({
role: ...,
previousAdminRole: ...,
newAdminRole: ...,
})
],
});

Parameters

Returns

The prepared event object.