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

chore: update eth-account #54

Merged
merged 4 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,7 @@ version.py

# Ape projects
.build/

# IDE files
.idea
.vscode
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
install_requires=[
"dataclassy>=0.11.1,<1",
"eth-abi>=5.1.0,<6",
"eth-account>=0.12.1,<0.13",
"eth-account>=0.12.1,<0.14",
"eth-typing>=4.1.0,<5",
"eth-utils>=4.1.0,<5",
"hexbytes>=1.2.0,<2",
Expand Down
3 changes: 1 addition & 2 deletions tests/test_common.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
from eth_account._utils.structured_data.hashing import hash_message
from hexbytes import HexBytes

from eip712.common import SAFE_VERSIONS, create_safe_tx_def
Expand All @@ -25,7 +24,7 @@ def test_gnosis_safe_tx(version):
else "590e9c66b22ee4584cd655fda57748ce186b85f829a092c28209478efbe86a92"
)

assert hash_message(msg).hex() == (
assert msg.signable_message.body.hex() == (
"3c2fdf2ea8af328a67825162e7686000787c5cc9f4b27cb6bfbcaa445b59e2c4"
if version in ("1.3.0",)
else "1b393826bed1f2297ffc01916f8339892f9a51dc7f35f477b9a5cdd651d28603"
Expand Down
Loading