Skip to content

Commit

Permalink
Merge pull request #1138 from MichaelRazum/memory-leak-fix-v4
Browse files Browse the repository at this point in the history
memory leak fix
  • Loading branch information
kclowes authored Nov 15, 2018
2 parents 8e204ed + a37a516 commit 26a3235
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions web3/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,11 @@ class ContractFunctions:
"""Class containing contract function objects
"""

_function_names = []

def __init__(self, abi, web3, address=None):
if abi:
self.abi = abi
self._functions = filter_by_type('function', self.abi)
for func in self._functions:
self._function_names.append(func['name'])
setattr(
self,
func['name'],
Expand Down Expand Up @@ -148,14 +145,11 @@ class ContractEvents:
"""Class containing contract event objects
"""

_event_names = []

def __init__(self, abi, web3, address=None):
if abi:
self.abi = abi
self._events = filter_by_type('event', self.abi)
for event in self._events:
self._event_names.append(event['name'])
setattr(
self,
event['name'],
Expand Down

0 comments on commit 26a3235

Please sign in to comment.