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

UserWarning from process_receipt for events #3521

Open
reedsa opened this issue Oct 28, 2024 · 0 comments
Open

UserWarning from process_receipt for events #3521

reedsa opened this issue Oct 28, 2024 · 0 comments

Comments

@reedsa
Copy link
Contributor

reedsa commented Oct 28, 2024

What happened?

When a call to process_receipt occurs with event topics, there is a warning shown that the event signature is not valid for the provided ABI.

Code that produced the error

event_instance.process_receipt(txn_receipt_dict)

Full error output

tests/core/contracts/test_extracting_event_data.py::test_receipt_processing_with_no_flag[<lambda>]
tests/core/contracts/test_extracting_event_data.py::test_receipt_processing_with_no_flag[identity]
  /Users/stu/.pyenv/versions/3.8.19/envs/w3/lib/python3.8/site-packages/eth_utils/functional.py:47: UserWarning: The log with transaction hash: HexBytes('0x075f46b42b4bd8dc33bd65eefbc343f114c44fa7b5baec854f784c68efce3d6d') and logIndex: 1 encountered the following error during processing: MismatchedABI(The event signature did not match the provided ABI). It has been discarded.
    return callback(fn(*args, **kwargs))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Fill this section in if you know how this could or should be fixed

Changes in get_event_data may have inadvertently caused this warning. However, reverting the processing code that matches the topic with the event ABI did not make the warning go away. There may be another issue with encoding the topic.

web3 Version

7.4.0

Python Version

3.8.19

Operating System

osx

Output from pip freeze

aiohappyeyeballs==2.4.3
aiohttp==3.10.10
aiosignal==1.3.1
alabaster==0.7.13
annotated-types==0.7.0
appnope==0.1.4
asttokens==2.4.1
async-timeout==4.0.3
attrs==24.2.0
babel==2.16.0
backcall==0.2.0
backports.tarfile==1.2.0
bitarray==3.0.0
build==1.2.2.post1
bump2version==1.0.1
bumpversion==0.6.0
cached-property==2.0.1
cachetools==5.5.0
certifi==2024.8.30
cfgv==3.4.0
chardet==5.2.0
charset-normalizer==3.4.0
ckzg==2.0.1
click==8.1.7
click-default-group==1.2.4
colorama==0.4.6
cytoolz==1.0.0
decorator==5.1.1
distlib==0.3.9
docutils==0.20.1
eth-account==0.13.4
eth-bloom==3.0.1
eth-hash==0.7.0
eth-keyfile==0.8.1
eth-keys==0.6.0
eth-rlp==2.1.0
eth-tester==0.12.0b2
eth-typing==5.0.1
eth-utils==5.1.0
eth_abi==5.1.0
eval_type_backport==0.2.0
exceptiongroup==1.2.2
execnet==2.1.1
executing==2.1.0
filelock==3.16.1
flaky==3.8.1
frozenlist==1.5.0
hexbytes==1.2.1
hypothesis==6.113.0
identify==2.6.1
idna==3.10
imagesize==1.4.1
importlib_metadata==8.5.0
importlib_resources==6.4.5
incremental==24.7.2
iniconfig==2.0.0
ipython==8.12.3
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.1.0
jedi==0.19.1
Jinja2==3.1.4
keyring==25.5.0
livereload==2.7.0
lru-dict==1.3.0
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib-inline==0.1.7
mdurl==0.1.2
more-itertools==10.5.0
multidict==6.1.0
mypy==1.10.0
mypy-extensions==1.0.0
nh3==0.2.18
nodeenv==1.9.1
packaging==24.1
parsimonious==0.10.0
parso==0.8.4
pexpect==4.9.0
pickleshare==0.7.5
pkginfo==1.10.0
platformdirs==4.3.6
pluggy==1.5.0
pre-commit==3.5.0
prompt_toolkit==3.0.48
propcache==0.2.0
ptyprocess==0.7.0
pure_eval==0.2.3
py-ecc==7.0.1
py-evm==0.10.1b2
py-geth==5.0.0
pycryptodome==3.21.0
pydantic==2.9.2
pydantic_core==2.23.4
Pygments==2.18.0
pyproject-api==1.8.0
pyproject_hooks==1.2.0
pysha3==1.0.2
pytest==8.3.3
pytest-asyncio==0.21.2
pytest-mock==3.14.0
pytest-xdist==3.6.1
pytz==2024.2
pyunormalize==16.0.0
PyYAML==6.0.2
readme_renderer==43.0
regex==2024.9.11
requests==2.32.3
requests-toolbelt==1.0.0
rfc3986==2.0.0
rich==13.9.3
rlp==4.0.1
semantic-version==2.10.0
six==1.16.0
snowballstemmer==2.2.0
sortedcontainers==2.4.0
Sphinx==7.1.2
sphinx-autobuild==2021.3.14
sphinx-rtd-theme==3.0.1
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-jquery==4.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
stack-data==0.6.3
tomli==2.0.2
toolz==1.0.0
tornado==6.4.1
towncrier==21.9.0
tox==4.23.2
tqdm==4.66.6
traitlets==5.14.3
trie==3.0.1
twine==5.1.1
types-requests==2.32.0.20241016
typing_extensions==4.12.2
urllib3==2.2.3
virtualenv==20.27.0
wcwidth==0.2.13
-e git+ssh://[email protected]/reedsa/web3.py.git@9672113e74f28ab98a5f0b9842256d7acc7b9982#egg=web3
websockets==13.1
yarl==1.15.2
zipp==3.20.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant