Skip to content

Commit

Permalink
fix parse sec_mod response
Browse files Browse the repository at this point in the history
  • Loading branch information
sinev-valentine committed Feb 8, 2019
1 parent becec60 commit 088886f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions keychain_lib/src/keychain_commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace keychain_app {

using swap_trx_t = secmod_commands::transaction_view<secmod_commands::blockchain_secmod_te::ethereum_swap>::type;

bool swap_action(std::string data, swap_trx_t::swap_t &swap_info) {
bool swap_action(std::string data, swap_trx_t::swap_t &swap_info) {
if (data.size() < 8)
return false;

Expand Down Expand Up @@ -230,7 +230,10 @@ dev::Secret keychain_base::get_private_key(const dev::Public& public_key, int un
if(unlock_time > 0)
key_map.insert(private_key_item(result_secret, unlock_time));
}
FC_LIGHT_THROW_EXCEPTION(fc_light::operation_canceled, "");
else
{
FC_LIGHT_THROW_EXCEPTION(fc_light::operation_canceled, "");
}
}
break;
case secmod_commands::response_te::canceled:
Expand Down

0 comments on commit 088886f

Please sign in to comment.