change tx origin warning message

pull/1/head
yann300 8 years ago
parent 62c925b34c
commit 24378b7930
  1. 2
      src/app/staticanalysis/modules/txOrigin.js

@ -20,7 +20,7 @@ txOrigin.prototype.report = function (node) {
var report = []
this.txOriginNode.map(function (item, i) {
report.push({
warning: 'use of tx.origin',
warning: 'use of tx.origin: "tx.origin" is useful only in very exceptional cases.\nIf you use it for authentication, you usually want to replace it by "msg.sender", because otherwise any contract you call can act on your behalf.',
location: item.src
})
})

Loading…
Cancel
Save