mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Merge pull request #766 from MetaMask/FixDelegateCallCheck
Fix delegate call analysis
This commit is contained in:
commit
1cabeb2fc4
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user