uniswap-universal-router-decoder
uniswap-universal-router-decoder copied to clipboard
Replace deprecated eth_account function
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.