提交 c053a2cd 编写于 作者: A Anton Perkov

unit-test fixed #2562

上级 76a413d9
......@@ -144,7 +144,9 @@ public:
fc::variant get_certrow(uint64_t identity, const string& property, uint64_t trusted, const string& certifier) {
const auto& db = control->get_database();
const auto* t_id = db.find<table_id_object, by_code_scope_table>(boost::make_tuple(N(identity), identity, N( certs )));
FC_ASSERT(t_id != 0, "certrow not found");
if ( !t_id ) {
return fc::variant(nullptr);
}
const auto& idx = db.get_index<index256_index, by_secondary>();
auto key = key256::make_from_word_sequence<uint64_t>(string_to_name(property.c_str()), trusted, string_to_name(certifier.c_str()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册