From e176874c30605d92fc72d2cfefd74342fd8bfaa1 Mon Sep 17 00:00:00 2001 From: lash Date: Sun, 13 Aug 2023 18:36:20 +0100 Subject: [PATCH] Handle crash on conrtact creation when recipient filter is active --- CHANGELOG | 2 ++ eth_monitor/rules.py | 2 ++ setup.cfg | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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