SKALE-2835 fix deleting bls keys

parent 4342c5d6
......@@ -637,7 +637,6 @@ Json::Value SGXWalletServer::isPolyExistsImpl(const string &_polyName) {
Json::Value SGXWalletServer::getServerStatusImpl() {
INIT_RESULT(result)
return result;
}
......@@ -659,13 +658,13 @@ Json::Value SGXWalletServer::deleteBlsKeyImpl(const std::string& name) {
std::shared_ptr <std::string> bls_ptr = LevelDB::getLevelDb()->readString(key);
if (bls_ptr != nullptr) {
LevelDB::getLevelDb()->deleteKey(name);
result["deleted"] = true;
return result;
} else {
std::string error_msg = "BLS key with such name not found: " + name;
throw SGXException(INVALID_BLS_NAME, error_msg.c_str());
}
LevelDB::getLevelDb()->deleteKey(name);
} HANDLE_SGX_EXCEPTION(result)
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment