Skip to content

Commit

Permalink
update router address
Browse files Browse the repository at this point in the history
  • Loading branch information
Elnaril committed Feb 7, 2025
1 parent 1f20519 commit d03ecb4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion coverage.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion tests/test_router_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ def test_get_max_expiration(codec):
)
)
def test_fetch_permit2_allowance(wallet, token, block_identifier, expected_result, codec_rpc):
amount, expiration, nonce = codec_rpc.fetch_permit2_allowance(wallet, token, block_identifier=block_identifier)
amount, expiration, nonce = codec_rpc.fetch_permit2_allowance(
wallet,
token,
spender=Web3.to_checksum_address("0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD"), # old UR address
block_identifier=block_identifier
)
assert (amount, expiration, nonce) == expected_result
2 changes: 1 addition & 1 deletion uniswap_universal_router_decoder/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# Mainnet addresses
_permit2_address = Web3.to_checksum_address("0x000000000022D473030F116dDEE9F6B43aC78BA3")
_ur_address = Web3.to_checksum_address("0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD")
_ur_address = Web3.to_checksum_address("0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af")

_permit2_domain_data = {'name': 'Permit2', 'chainId': 1, 'verifyingContract': _permit2_address}
_permit2_types = {
Expand Down

0 comments on commit d03ecb4

Please sign in to comment.