diff --git a/CHANGELOG b/CHANGELOG index 195e595..4dd7134 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.8.6 + * Handle crash on conrtact creation when recipient filter is active - 0.8.5 * Instantiate constructor for chain interface superclass * Remove unused settings transform method for sync interface diff --git a/eth_monitor/rules.py b/eth_monitor/rules.py index 23bafae..2423154 100644 --- a/eth_monitor/rules.py +++ b/eth_monitor/rules.py @@ -85,6 +85,8 @@ class RuleSimple: if rule != None and is_same_address(sender, rule): logg.debug('tx {} rule {} match in SENDER {}'.format(tx_hash, self.description, sender)) return True + if recipient == None: + return False for rule in self.inputs: if rule != None and is_same_address(recipient, rule): logg.debug('tx {} rule {} match in RECIPIENT {}'.format(tx_hash, self.description, recipient)) diff --git a/setup.cfg b/setup.cfg index fc72b6d..323e89f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = eth-monitor -version = 0.8.5 +version = 0.8.6 description = Monitor and cache transactions using match filters author = Louis Holbrook author_email = dev@holbrook.no