You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CDP ERC20 Transfers failing due to incomplete network mapping. #723
Based on the error we encountered, here's the issue analysis and proposed code changes:
Issue Analysis
The error shows a validation error in the SendEvmTransactionRequest where the network value 'base-mainnet' is not accepted, but the enum only allows ('base', 'base-sepolia', 'ethereum', 'ethereum-sepolia').
Proposed Code Changes
File: Likely in a validation schema file (e.g., models.py, schemas.py, or similar)
Current Code (problematic):
class SendEvmTransactionRequest(BaseModel):
network: Literal['base', 'base-sepolia', 'ethereum', 'ethereum-sepolia']
# ... other fields
Proposed Fix:
class SendEvmTransactionRequest(BaseModel):
network: Literal['base', 'base-mainnet', 'base-sepolia', 'ethereum', 'ethereum-sepolia']
# ... other fields
Alternative Solution (more robust):
class SendEvmTransactionRequest(BaseModel):
network: str
@validator('network')
def validate_network(cls, v):
if v not in NETWORK_MAPPING:
raise ValueError(f'Network {v} not supported')
return NETWORK_MAPPING[v]
Recommendation
Since I can't directly access the IntentKit repository to submit a PR, I recommend:
Report this issue at: https://github.com/crestalnetwork/intentkit
Include the error details and proposed fix above
Suggest adding 'base-mainnet' to the accepted network values in the validation enum
This is a simple but critical fix that will resolve the network compatibility issue for Base mainnet transactions
Activity
YourCryptoExpert commentedon Jul 28, 2025
I could look into this possibly.
Acr0Crypt0 commentedon Nov 1, 2025
I SEE