-
Notifications
You must be signed in to change notification settings - Fork 940
fix: replace manual ABI decoding with web3.py in GovernanceEthereum #2069
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
base: main
Are you sure you want to change the base?
Conversation
❌ 16 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
|
Please don't change the test file name |
noted |
- Replace manual ABI decoding with web3.py library - Add minimal ABI definition for getRuleSet function - Update tests to mock web3.py interactions - Improve error handling for blockchain calls Fixes OpenMind#1824
96b73fe to
0bc2d98
Compare
|
Hi @openminddev tests/inputs/ I have a question regarding the test structure for Current situation:
Both test files import and test the same My questions:
Current PR status:
|
This pull request fixes the fragility and testability issues identified in issue #1824.
Problem
The previous implementation used manual hex parsing in
decode_eth_responsewhich was:Solution
Replaced manual ABI decoding with web3.py contract calls:
decode_eth_responsefunction with manual hex parsingweb3.pycontract.functions.getRuleSet().call()for robust ABI decodinggetRuleSetfunctionBadFunctionCallOutputandContractLogicErrorImproved test coverage:
web3.pyinteractions properly