Last updated
Last updated
Changing of the contract administrator is done in 2 steps:
Current administrator should transfer his rights to a new administrator.
A new administrator must accept his new role. If he didn't accept a new role, the previous administrator continues to be an administrator of this contract.
This entrypoint describes the first step of changing the contract administrator. The second step is described .
400
- sender
of the transaction is not current administrator.
412
- non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).
admin
address
A new administrator of the contract
const auctionAddress = "KT1...";
const admin = "tz1...";
const auction = await tezos.contract.at(auctionAddress);
const operation = await auction.methods.set_admin(admin).send();
await operation.confirmation();