Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 web3 version bumped to >=7.15.0 but code uses removed camelCase API methods
Bumping
web3to>=7.15.0breaks all Ethereum CLI functionality because web3.py v7 removed all camelCase method aliases that the code depends on. I verified by installing web3 7.15.0 thatisConnected,estimateGas,getTransactionCount,sendRawTransaction,encodeABIno longer exist (all returnFalseforhasattr).All broken call sites
python/src/trezorlib/cli/ethereum.py:158-159:contract.encodeABI(...)→ should becontract.encode_abi(...)python/src/trezorlib/cli/ethereum.py:393:_get_web3().isConnected()→ should be_get_web3().is_connected()python/src/trezorlib/cli/ethereum.py:428:.eth.estimateGas(...)→ should be.eth.estimate_gas(...)python/src/trezorlib/cli/ethereum.py:438:.eth.getTransactionCount(...)→ should be.eth.get_transaction_count(...)python/src/trezorlib/cli/ethereum.py:467:.eth.gasPrice→ should be.eth.gas_pricepython/src/trezorlib/cli/ethereum.py:522:.eth.sendRawTransaction(...)→ should be.eth.send_raw_transaction(...)python/src/trezorlib/cli/ethereum_onekey.py:143:contract.encodeABI(...)→ should becontract.encode_abi(...)python/src/trezorlib/cli/ethereum_onekey.py:280:_get_web3().isConnected()→ should be_get_web3().is_connected()python/src/trezorlib/cli/ethereum_onekey.py:306:.eth.estimateGas(...)→ should be.eth.estimate_gas(...)python/src/trezorlib/cli/ethereum_onekey.py:316:.eth.getTransactionCount(...)→ should be.eth.get_transaction_count(...)python/src/trezorlib/cli/ethereum_onekey.py:339:.eth.gasPrice→ should be.eth.gas_pricepython/src/trezorlib/cli/ethereum_onekey.py:393:.eth.sendRawTransaction(...)→ should be.eth.send_raw_transaction(...)Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.