Skip to content

Commit 3a2b474

Browse files
Update Python client to web3 v7
Also drop Python < 3.9 support
1 parent eea02f8 commit 3a2b474

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

client/pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,20 @@ readme = { file = "README.md", content-type = "text/markdown" }
1616
# license = { file = "LICENSE" }
1717
classifiers = [
1818
"License :: OSI Approved :: Apache Software License",
19-
"Programming Language :: Python :: 3.7",
20-
"Programming Language :: Python :: 3.8",
2119
"Programming Language :: Python :: 3.9",
2220
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2324
"Operating System :: POSIX :: Linux",
2425
"Operating System :: Microsoft :: Windows",
2526
"Operating System :: MacOS :: MacOS X",
2627
]
2728
dynamic = [ "version" ]
28-
requires-python = ">=3.7"
29+
requires-python = ">=3.9"
2930
dependencies = [
3031
"ragger[speculos]",
31-
"web3~=6.0",
32+
"web3~=7.0",
3233
]
3334

3435
[tools.setuptools]

client/src/ledger_app_clients/ethereum/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def serialize_tx(self, tx_params: dict, tx_raw: Optional[bytes] = None) -> Tuple
219219
if tx_raw is not None:
220220
tx = tx_raw
221221
else:
222-
tx = Web3().eth.account.create().sign_transaction(tx_params).rawTransaction
222+
tx = Web3().eth.account.create().sign_transaction(tx_params).raw_transaction
223223
prefix = bytes()
224224
suffix = []
225225
if tx[0] in [0x01, 0x02, 0x04]:

client/src/ledger_app_clients/ethereum/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def recover_message(msg, vrs: tuple) -> bytes:
2828

2929
def recover_transaction(tx_params, vrs: tuple, raw_tx_param: Optional[bytes] = None) -> bytes:
3030
if raw_tx_param is None:
31-
raw_tx = Account.create().sign_transaction(tx_params).rawTransaction
31+
raw_tx = Account.create().sign_transaction(tx_params).raw_transaction
3232
else:
3333
raw_tx = raw_tx_param
3434
prefix = bytes()

tests/ragger/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pytest
22
ecdsa
3-
web3~=6.0
3+
web3~=7.0
44
ragger[speculos]
55
py_ecc

0 commit comments

Comments
 (0)