Skip to main content

ContractOwner.set() method

Set the new owner of the contract

Example

await contract.owner.set("0x1234567890123456789012345678901234567890");

Signature:

set(address: string): Promise<TransactionResult>;

Parameters

ParameterTypeDescription
addressstringthe address of the new owner

Returns:

Promise<TransactionResult>

Remarks

Can only be called by the current owner.