We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b33c627 commit dd4b125Copy full SHA for dd4b125
1 file changed
src/opengradient/client/opg_token.py
@@ -8,6 +8,7 @@
8
9
from eth_account.account import LocalAccount
10
from web3 import Web3
11
+from web3.types import ChecksumAddress
12
from x402.mechanisms.evm.constants import PERMIT2_ADDRESS
13
14
logger = logging.getLogger(__name__)
@@ -61,8 +62,8 @@ def _send_approve_tx(
61
62
wallet_account: LocalAccount,
63
w3: Web3,
64
token,
- owner: str,
65
- spender: str,
+ owner: ChecksumAddress,
66
+ spender: ChecksumAddress,
67
amount_base: int,
68
) -> Permit2ApprovalResult:
69
"""Send an ERC-20 approve transaction and wait for confirmation.
0 commit comments