Skip to content

Commit

Permalink
Update lib/rules/security/avoid-tx-origin.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Franco Victorio <[email protected]>
  • Loading branch information
fernandomg and fvictorio authored Dec 17, 2019
1 parent 592e037 commit 9e88a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/security/avoid-tx-origin.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AvoidTxOriginChecker extends BaseChecker {
}

MemberAccess(node) {
if (node.memberName === 'origin' && node.expression.name === 'tx') {
if (node.expression.name === 'tx' && node.memberName === 'origin') {
this.error(node, 'Avoid to use tx.origin')
}
}
Expand Down

0 comments on commit 9e88a2d

Please sign in to comment.