Skip to content

Commit fa5fdd6

Browse files
authored
chore(signing): Update to use sign typed data instead of sign message (#151)
1 parent 5379e4a commit fa5fdd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hyperliquid/utils/signing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,7 @@ def sign_token_delegate_action(wallet, action, is_mainnet):
392392

393393

394394
def sign_inner(wallet, data):
395-
structured_data = encode_typed_data(full_message=data)
396-
signed = wallet.sign_message(structured_data)
395+
signed = wallet.sign_typed_data(full_message=data)
397396
return {"r": to_hex(signed["r"]), "s": to_hex(signed["s"]), "v": signed["v"]}
398397

399398

0 commit comments

Comments
 (0)