Skip to content

Commit 9b8d8b6

Browse files
nesitor1yam
authored andcommitted
Fix: Solved wrong signing address when a derivation_path is used.
1 parent 0ce04b8 commit 9b8d8b6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/aleph/sdk/wallets/ledger/ethereum.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ async def sign_message(self, message: Dict) -> Dict:
8484

8585
# TODO: Check why the code without a wallet uses `encode_defunct`.
8686
msghash: bytes = get_verification_buffer(message)
87-
sig: SignedMessage = sign_message(
88-
msghash, dongle=self._device, sender_path=self._account.path
89-
)
87+
sig: SignedMessage = sign_message(msghash, dongle=self._device, sender_path=self._account.path)
9088

9189
signature: HexStr = sig.signature
9290

@@ -95,9 +93,7 @@ async def sign_message(self, message: Dict) -> Dict:
9593

9694
async def sign_raw(self, buffer: bytes) -> bytes:
9795
"""Sign a raw buffer."""
98-
sig: SignedMessage = sign_message(
99-
buffer, dongle=self._device, sender_path=self._account.path
100-
)
96+
sig: SignedMessage = sign_message(buffer, dongle=self._device, sender_path=self._account.path)
10197
signature: HexStr = sig.signature
10298
return bytes_from_hex(signature)
10399

0 commit comments

Comments
 (0)