Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory leak fix #1138

Merged
merged 1 commit into from
Nov 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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