CDT  v4.2.0
инструменты разработчика

◆ get_code()

template<name::raw TableName, typename T , typename... Indices>
name eosio::multi_index< TableName, T, Indices >::get_code ( ) const
inline

Возвращает свойство-член code.

Возвращает
Имя аккаунта кода, которому принадлежит первичная таблица.

Пример:

// This assumes the code from the constructor example. Replace myaction() {...}
void myaction() {
address_index addresses("dan"_n, "dan"_n.value); // code, scope
eosio::check(addresses.get_code() == "dan"_n, "Codes don't match.");
}
}
EOSIO_DISPATCH( addressbook, (myaction) )

См. определение в файле multi_index.hpp строка 915