Skip to content

Commit

Permalink
Merge pull request #2911 from ethereum/enhancement/methods-proxy
Browse files Browse the repository at this point in the history
Proxies updated
  • Loading branch information
nivida authored Jun 25, 2019
2 parents 7dd086b + 3aaa9bb commit 4468ccf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/web3-core-method/src/proxy/MethodProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class MethodProxy {
return RpcMethod;
}

return target[name];
return Reflect.get(target, name);
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default class EventSubscriptionsProxy {
};
}

return target[name];
return Reflect.get(target, name);
}
});
}
Expand Down
4 changes: 1 addition & 3 deletions packages/web3-eth-contract/src/proxies/MethodsProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ export default class MethodsProxy {
/* eslint-enable no-inner-declarations */
}

if (target[name]) {
return target[name];
}
return Reflect.get(target, name);
}
});
}
Expand Down

0 comments on commit 4468ccf

Please sign in to comment.