Skip to content

Commit 793cc93

Browse files
committed
Remove unused USDC var and lint
1 parent 4e8f3f3 commit 793cc93

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

‎tee_gateway/__main__.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@
2727
from x402.http.types import RouteConfig
2828
from x402.mechanisms.evm.exact import ExactEvmServerScheme
2929
from x402.mechanisms.evm.upto import UptoEvmServerScheme
30-
from x402.extensions.eip2612_gas_sponsoring import declare_eip2612_gas_sponsoring_extension
31-
from x402.extensions.erc20_approval_gas_sponsoring import declare_erc20_approval_gas_sponsoring_extension
30+
from x402.extensions.eip2612_gas_sponsoring import (
31+
declare_eip2612_gas_sponsoring_extension,
32+
)
33+
from x402.extensions.erc20_approval_gas_sponsoring import (
34+
declare_erc20_approval_gas_sponsoring_extension,
35+
)
3236
from x402.schemas import AssetAmount
3337
from x402.server import x402ResourceServerSync
3438
from x402.session import SessionStore
@@ -186,7 +190,7 @@ def _shutdown_heartbeat():
186190
},
187191
),
188192
network=BASE_MAINNET_NETWORK,
189-
),
193+
),
190194
],
191195
extensions={
192196
**declare_eip2612_gas_sponsoring_extension(),

‎tee_gateway/definitions.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353

5454
# Maps lowercase contract address → number of decimals for unit conversion.
5555
ASSET_DECIMALS_BY_ADDRESS: dict[str, int] = {
56-
USDC_ADDRESS.lower(): 6, # USDC / OUSDC standard: 6 decimals
5756
BASE_TESTNET_OPG_ADDRESS.lower(): 18, # OPG: 18 decimals (ERC-20 standard)
5857
BASE_MAINNET_OPG_ADDRESS.lower(): 18, # OPG: 18 decimals (ERC-20 standard)
5958
}

‎tests/test_pricing.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import unittest
1212
from decimal import Decimal
1313

14-
from tee_gateway.definitions import BASE_TESTNET_OPG_ADDRESS, USDC_ADDRESS
14+
from tee_gateway.definitions import BASE_TESTNET_OPG_ADDRESS
1515
from tee_gateway.model_registry import (
1616
_MODEL_LOOKUP,
1717
get_model_config,

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)