We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 471c0cd commit 4aad18fCopy full SHA for 4aad18f
client/src/ledger_app_clients/ethereum/tx_auth_7702.py
@@ -18,17 +18,20 @@ class TxAuth7702(TlvSerializable):
18
bip32_path: str
19
delegate: bytes
20
nonce: int
21
- chain_id: Optional[int] = 0
+ chain_id: int
22
23
def __init__(self,
24
bip32_path: str,
25
delegate: bytes,
26
nonce: int,
27
- chain_id: Optional[int] = 0) -> None:
+ chain_id: Optional[int]) -> None:
28
self.bip32_path = bip32_path
29
self.delegate = delegate
30
self.nonce = nonce
31
- self.chain_id = chain_id
+ if chain_id is None:
32
+ self.chain_id = 0
33
+ else:
34
+ self.chain_id = chain_id
35
36
def serialize(self) -> bytes:
37
payload: bytes = self.serialize_field(FieldTag.STRUCT_VERSION, 1)
0 commit comments