setAdmin
address -> storage with [ admin ]
Sets new admin
to contract storage
Usage
const newAdmin = "tz1...";
const yupana = await tezos.contract.at(yTokenAddress);
const operation = await yupana.methods.setAdmin(newAdmin).send();
await operation.confirmation();
Errors
yToken/not-admin
-sender
is not contract admin.
Last updated