add title + self check

This commit is contained in:
2024-05-17 17:35:48 -07:00
parent 3fc6b82ac0
commit a68496857d
3 changed files with 28 additions and 14 deletions

View File

@ -26,12 +26,12 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api)
}
try {
//auto* cr = PLUG_RESOLVE_INSTANCE_VERSIONED(Contact3Registry, "1");
auto* cr = PLUG_RESOLVE_INSTANCE_VERSIONED(Contact3Registry, "1");
auto* rmm = PLUG_RESOLVE_INSTANCE(RegistryMessageModel);
// static store, could be anywhere tho
// construct with fetched dependencies
g_mn10n = std::make_unique<MessageN10n>(*rmm);
g_mn10n = std::make_unique<MessageN10n>(*cr, *rmm);
// register types
PLUG_PROVIDE_INSTANCE(MessageN10n, plugin_name, g_mn10n.get());