set_baker_registry

An entrypoint that setups a new BakerRegistry contract for bakers validation and registration in time of voting (see BakerRegistry).

Call parameters

FieldTypeDescription

baker_registry

address

An address of a new BakerRegistry contract

Usage

const qFarmAddress = "KT1...";
const bakerRegistry = "KT1...";
const qFarm = await tezos.contract.at(qFarmAddress);
const operation = await qFarm.methods.set_baker_registry(bakerRegistry).send();

await operation.confirmation();

Errors

  • Not-admin - sender of the transaction is not current administrator.

Last updated