probe: approve_erc20 correct kwargs

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jaxperro
2026-07-09 20:39:30 -04:00
parent aab3d1c965
commit 0ef5b9c2a2
+1 -1
View File
@@ -76,7 +76,7 @@ with client:
USDC = "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"
COLLAT = "0xC011a7E12a19f7B1f670d46F03B03f3342E82DFB"
try:
h = client.approve_erc20(token_address=USDC, spender=COLLAT, amount=2**256 - 1)
h = client.approve_erc20(token_address=USDC, spender_address=COLLAT, amount="max")
if h is not None and hasattr(h, "wait"):
print(" USDC→collateral approval:", str(h.wait())[:150])
else: