Skip to main content

transferOwnership

Contract: JBToken​‌

Interface: IJBToken

Transfer ownership of this contract to another address.

Only the owner of this contract can transfer it.

Definition

function transferOwnership(uint256 _projectId, address _newOwner)
public
virtual
override
onlyOwner { ... }
  • Arguments:
    • _projectId is the ID of the project to which the token belongs. This is ignored.
    • _newOwner is the new owner.
  • Through the onlyOwner modifier, this function can only be accessed by the address that owns this contract.
  • The function overrides a function definition from the IJBToken interface.
  • The function returns nothing.

Body

  1. Forward the call to the inherited version from Ownable.

    return super.transferOwnership(_newOwner);

    Inherited references: