Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions agents/polymarket/polymarket.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from web3 import Web3
from web3.constants import MAX_INT
from web3.middleware import geth_poa_middleware
from web3.middleware import ExtraDataToPOAMiddleware

import httpx
from py_clob_client.client import ClobClient
Expand Down Expand Up @@ -57,7 +57,7 @@ def __init__(self) -> None:
self.ctf_address = "0x4D97DCd97eC945f40cF65F87097ACe5EA0476045"

self.web3 = Web3(Web3.HTTPProvider(self.polygon_rpc))
self.web3.middleware_onion.inject(geth_poa_middleware, layer=0)
self.web3.middleware_onion.inject(ExtraDataToPOAMiddleware, layer=0)

self.usdc = self.web3.eth.contract(
address=self.usdc_address, abi=self.erc20_approve
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ uvicorn==0.30.3
uvloop==0.19.0
virtualenv==20.26.3
watchfiles==0.22.0
web3==6.11.0
web3==7.14.1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incompatible eth-typing and eth-utils versions for web3 v7

High Severity

Bumping web3 to 7.14.1 without updating its sub-dependencies causes an installation or runtime failure. web3==7.14.1 requires eth-typing>=5 and eth-utils>=5, but requirements.txt still pins eth-typing==4.4.0 and eth-utils==4.1.1. This version conflict will prevent the application from starting. The PR description even acknowledges these packages "may also need version updates" but doesn't actually apply them.

Additional Locations (1)

Fix in Cursor Fix in Web

websocket-client==1.8.0
websockets==12.0
wrapt==1.16.0
Expand Down