From 3aaa9bba5131b90bc43937a904984420bb765072 Mon Sep 17 00:00:00 2001 From: nivida Date: Tue, 25 Jun 2019 13:02:16 +0200 Subject: [PATCH] proxies updated --- packages/web3-core-method/src/proxy/MethodProxy.js | 2 +- .../web3-eth-contract/src/proxies/EventSubscriptionsProxy.js | 2 +- packages/web3-eth-contract/src/proxies/MethodsProxy.js | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/web3-core-method/src/proxy/MethodProxy.js b/packages/web3-core-method/src/proxy/MethodProxy.js index b8b97576c9e..74b70bcc6ce 100644 --- a/packages/web3-core-method/src/proxy/MethodProxy.js +++ b/packages/web3-core-method/src/proxy/MethodProxy.js @@ -63,7 +63,7 @@ export default class MethodProxy { return RpcMethod; } - return target[name]; + return Reflect.get(target, name); } }); } diff --git a/packages/web3-eth-contract/src/proxies/EventSubscriptionsProxy.js b/packages/web3-eth-contract/src/proxies/EventSubscriptionsProxy.js index 9020a644a20..0e234741fa5 100644 --- a/packages/web3-eth-contract/src/proxies/EventSubscriptionsProxy.js +++ b/packages/web3-eth-contract/src/proxies/EventSubscriptionsProxy.js @@ -72,7 +72,7 @@ export default class EventSubscriptionsProxy { }; } - return target[name]; + return Reflect.get(target, name); } }); } diff --git a/packages/web3-eth-contract/src/proxies/MethodsProxy.js b/packages/web3-eth-contract/src/proxies/MethodsProxy.js index c4c41b1ba9e..be07b4b76f6 100644 --- a/packages/web3-eth-contract/src/proxies/MethodsProxy.js +++ b/packages/web3-eth-contract/src/proxies/MethodsProxy.js @@ -136,9 +136,7 @@ export default class MethodsProxy { /* eslint-enable no-inner-declarations */ } - if (target[name]) { - return target[name]; - } + return Reflect.get(target, name); } }); }