IOwnable
Thirdweb's Ownable
is a contract extension to be used with any base contract. It exposes functions for setting and reading who the 'owner' of the inheriting smart contract is, and lets the inheriting contract perform conditional logic that uses information about who the contract's owner is.
Methods
owner
Returns the owner of the contract.
Returns
Name
Type
Description
_0
address
undefined
setOwner
Lets a module admin set a new owner for the contract. The new owner must be a module admin.
Parameters
Name
Type
Description
_newOwner
address
undefined
Events
OwnerUpdated
Emitted when a new Owner is set.
Parameters
Name
Type
Description
prevOwner indexed
address
undefined
newOwner indexed
address
undefined
Last updated