Changing an Operator's Owner
"CONTROLLER" key stands for the owner of the ID of a given Operators.
const getBytes = (key) => {
return Web3.utils.toHex(key);
};
const owner = Portal.readAddressForId(id, getBytes("CONTROLLER"))
This might be a developer's address, a developers' multisig, or a Token address.
Portal.changeIdCONTROLLER(uint256 id, address newCONTROLLER)
After changing your CONTROLLER, you will not be able to take this action back by using your old CONTROLLER address.
Last modified 6mo ago