uniswap-universal-router-decoder icon indicating copy to clipboard operation
uniswap-universal-router-decoder copied to clipboard

Replace deprecated eth_account function

Open Elnaril opened this issue 10 months ago • 0 comments

The function eth_account.encode_structured_data() is deprecated in favour of eth_account.messages.encode_typed_data().

The UR SDK is still using encode_structured_data() in RouterCodec.create_permit2_signable_message and thus must be updated with encode_typed_data().

As a source of inspiration, one can look how it was used in the UniswapX SDK.

Elnaril avatar Mar 30 '24 06:03 Elnaril