Merge pull request #766 from MetaMask/FixDelegateCallCheck

Fix delegate call analysis
This commit is contained in:
Dan Finlay 2016-10-25 17:38:03 -07:00 committed by GitHub
commit 1cabeb2fc4
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
## Current Master
- Add a check for improper Transaction data.
- Fix bug that was sometimes preventing transactions from being sent.
## 2.13.5 2016-10-18

View File

@ -247,7 +247,7 @@ IdentityStore.prototype.addUnconfirmedTransaction = function (txParams, onTxDone
// perform static analyis on the target contract code
function analyzeForDelegateCall(cb){
if (txParams.to) {
query.getCode(txParams.to, function (err, result) {
query.getCode(txParams.to, (err, result) => {
if (err) return cb(err)
var containsDelegateCall = this.checkForDelegateCall(result)
txData.containsDelegateCall = containsDelegateCall