Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
swatanabe committed Feb 23, 2022
1 parent d134c53 commit f0f1c0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contracts/eden/src/elections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,7 @@ namespace eden
if (old_account == value.lead_representative)
{
value.lead_representative = new_account;
global_state.set(value, contract);
}
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/eden/src/members.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ namespace eden
void members::rename(eosio::name account, eosio::name new_account)
{
auto iter = member_tb.find(account.value);
std::uint8_t rank = iter->election_rank();
eosio::check(iter != member_tb.end(), "Unknown member");
std::uint8_t rank = iter->election_rank();
remove_sessions(contract, account);
// Update the members table entry
member_tb.emplace(contract, [&](auto& new_member) {
Expand Down

0 comments on commit f0f1c0c

Please sign in to comment.