Skip to content

Commit

Permalink
verification accaunts #420 #421
Browse files Browse the repository at this point in the history
  • Loading branch information
kudzinp committed Jan 29, 2019
1 parent f27cc86 commit 174227e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions golos.social/golos.social.cpp
Expand Up @@ -10,6 +10,7 @@ EOSIO_DISPATCH(social, (pin)(unpin)(block)(unblock)(changereput)(updatemeta)(del
void social::pin(name pinner, name pinning) {
require_auth(pinner);

eosio_assert(is_account(pinning), "Pinning account doesn't exist.");
eosio_assert(pinner != pinning, "You cannot pin yourself");

tables::pinblock_table table(_self, pinner.value);
Expand Down Expand Up @@ -58,6 +59,7 @@ bool social::record_is_empty(structures::pinblock_record record) {
void social::block(name blocker, name blocking) {
require_auth(blocker);

eosio_assert(is_account(blocking), "Blocking account doesn't exist.");
eosio_assert(blocker != blocking, "You cannot block yourself");

tables::pinblock_table table(_self, blocker.value);
Expand Down

0 comments on commit 174227e

Please sign in to comment.