Commit 24378b79 authored by yann300's avatar yann300

change tx origin warning message

parent 62c925b3
...@@ -20,7 +20,7 @@ txOrigin.prototype.report = function (node) { ...@@ -20,7 +20,7 @@ txOrigin.prototype.report = function (node) {
var report = [] var report = []
this.txOriginNode.map(function (item, i) { this.txOriginNode.map(function (item, i) {
report.push({ 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 location: item.src
}) })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment