MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / get_root_contract_initial_state

Method get_root_contract_initial_state

runners/BaseRunner.cpp:425–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423 co_return td::Unit();
424}
425td::actor::Task<td::Unit> BaseRunner::get_root_contract_initial_state() {
426 if (ton_disabled()) {
427 auto config = co_await RootContractConfig::load_from_json(ton_pseudo_config_, is_testnet());
428 set_root_contract_config(std::move(config), (int)std::time(0));
429 co_return td::Unit{};
430 }
431 co_await update_root_contract_state();
432 co_return td::Unit{};
433}
434void BaseRunner::coro_init_done() {
435 custom_initialize([self_id = actor_id(this)](td::Result<td::Unit> R) {
436 if (R.is_error()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected