Skip to content

Commit

Permalink
Merge pull request #12 from EOSLaoMao/feature/safe-transfer
Browse files Browse the repository at this point in the history
add missing permission check
  • Loading branch information
JohnnyZhao authored Oct 18, 2018
2 parents 8b01a78 + e19282f commit 937a3e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bankofstaked.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class bankofstaked : contract
// @abi action clearhistory
void clearhistory()
{
require_auth(code_account);
uint64_t depth = 0;
history_table o(code_account, SCOPE_ORDER>>1);
while (o.begin() != o.end())
Expand Down

0 comments on commit 937a3e5

Please sign in to comment.