Add method setter for callback filter

This commit is contained in:
lash 2022-04-25 06:02:54 +00:00
parent a5f9ef47d2
commit d439a2028f
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -34,6 +34,15 @@ class CallbackFilter(SyncFilter):
trusted_addresses = []
def __init__(self, chain_spec, registry, queue, caller_address=ZERO_ADDRESS):
super(CallbackFilter, self).__init__(chain_spec, registry, queue, caller_address=caller_address)
self.method = None
def set_method(self, method):
self.method = method
def call_back(self, transfer_type, result):
result['chain_spec'] = result['chain_spec'].asdict()
s = celery.signature(