changeDev()

changeDev() external returns (bool succes)

Description

The function can only be called by the current developer address. This function is used to change the developer address to the new entered address. The developer address receives the fee. The developer has no power over the contract.

Require

It is required that the msg.sender is the current dev address.

#Check require
require(msg.sender == dev, "change developer: not the current developer");

Input

The inputs are the address of the new developer to receive the fee.

#The inputs
address payable _dev

Output

Returns true on successful execution.

#Returns value
returns (bool success)

Last updated

Was this helpful?