Skip to content

Commit

Permalink
fixed verify input member account (#71)
Browse files Browse the repository at this point in the history
* fixed verify input member account

Co-authored-by: Quoc Le <[email protected]>
  • Loading branch information
2 people authored and danielvo11 committed Feb 4, 2021
1 parent 79efdc1 commit 69c6b66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified community/community.wasm
Binary file not shown.
1 change: 1 addition & 0 deletions community/src/community.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ ACTION community::inputmembers(name community_account, vector<name> added_member

for (auto added_member : added_members)
{
check( is_account( added_member ), "one of those added accounts does not exist");
auto mem_itr = _members.find(added_member.value);
check(mem_itr == _members.end(), "ERR::MEMBER_ALREADY_EXIST::At least one of the member already exist.");
_members.emplace(ram_payer, [&](auto &row) {
Expand Down

0 comments on commit 69c6b66

Please sign in to comment.