Skip to content

Commit c1d70c1

Browse files
committed
[FIX] Added restriction to eip712 version in pyproject.toml to avoid breaking changes in the future
1 parent ab53c2c commit c1d70c1

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyinjective/orderhash.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
from decimal import Decimal
22

33
import requests
4-
from eip712.messages import EIP712Domain, EIP712Message
4+
from eip712.messages import EIP712Domain, EIP712Message, EIP712Type
55
from eth_account.messages import _hash_eip191_message as hash_eip191_message
66
from eth_pydantic_types import abi
77
from hexbytes import HexBytes
8-
from pydantic import BaseModel
98

109
from pyinjective.core.token import Token
1110

1211

13-
class OrderInfo(BaseModel):
12+
class OrderInfo(EIP712Type):
1413
SubaccountId: abi.string
1514
FeeRecipient: abi.string
1615
Price: abi.string

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ aiohttp = "^3.9.4" # Version dependency due to https://github.com/InjectiveLabs/
2626
bech32 = "*"
2727
bip32 = "*"
2828
ecdsa = "*"
29-
eip712 = "*"
29+
eip712 = "^0.3.0"
3030
grpcio = "*"
3131
grpcio-tools = "*"
3232
hdwallets = "*"

0 commit comments

Comments
 (0)