1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Fix delegate call analysis

Fixed reference allowing transactions to be analyzed for delegate call again.
This commit is contained in:
Dan Finlay 2016-10-25 14:58:04 -07:00
parent f7688ac3cf
commit bda64ab132
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