Skip to content

Commit dd4b125

Browse files
author
balogh.adam@icloud.com
committed
fix check
1 parent b33c627 commit dd4b125

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/opengradient/client/opg_token.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from eth_account.account import LocalAccount
1010
from web3 import Web3
11+
from web3.types import ChecksumAddress
1112
from x402.mechanisms.evm.constants import PERMIT2_ADDRESS
1213

1314
logger = logging.getLogger(__name__)
@@ -61,8 +62,8 @@ def _send_approve_tx(
6162
wallet_account: LocalAccount,
6263
w3: Web3,
6364
token,
64-
owner: str,
65-
spender: str,
65+
owner: ChecksumAddress,
66+
spender: ChecksumAddress,
6667
amount_base: int,
6768
) -> Permit2ApprovalResult:
6869
"""Send an ERC-20 approve transaction and wait for confirmation.

0 commit comments

Comments
 (0)