Skip to content

Commit

Permalink
adding check on "to" param for the "stake" action
Browse files Browse the repository at this point in the history
  • Loading branch information
harpagon210 committed Jun 19, 2019
1 parent 8ed1c35 commit b4885fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ actions.stake = async (payload) => {

if (api.assert(isSignedWithActiveKey === true, 'you must use a custom_json signed with your active key')
&& api.assert(symbol && typeof symbol === 'string'
&& to && typeof to === 'string'
&& quantity && typeof quantity === 'string' && !api.BigNumber(quantity).isNaN(), 'invalid params')) {
// a valid steem account is between 3 and 16 characters in length
const token = await api.db.findOne('tokens', { symbol });
Expand Down

0 comments on commit b4885fd

Please sign in to comment.