From 24378b79305a9684cd31d74778854a5859a69511 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 9 Nov 2016 16:18:23 +0100 Subject: [PATCH] change tx origin warning message --- src/app/staticanalysis/modules/txOrigin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/staticanalysis/modules/txOrigin.js b/src/app/staticanalysis/modules/txOrigin.js index d2ecfae7ff..a8ffd7df03 100644 --- a/src/app/staticanalysis/modules/txOrigin.js +++ b/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 }) })