zkemail / email-wallet

A smart contract wallet controlled using email
https://emailwallet.org
MIT License
96 stars 15 forks source link

Add support for token addresses on chainId 11155111. #59

Closed wshino closed 4 months ago

wshino commented 4 months ago

Added USDC address for Ethereum Sepolia (chain id = 11155111)

The address of L103 is the official USDC address provided by Circle. https://developers.circle.com/stablecoins/docs/migrate-from-goerli-to-sepolia-testnet

WETH and DAI addresses are based on Uni V3 Pool. https://www.geckoterminal.com/sepolia-testnet/pools/0x1c9d93e574be622821398e3fe677e3a279f256f7

My question is: Currently chainId = 11155111 does not exist in contract. (is this PR too) I actually checked the .env of the instance running for Sepolia. CHAIN_ID is set to 11155111. Is Sepolia contract currently using a different chainId? -> It's been resolved. If getTokenAddress doesn't match any cases, it just returns addressOfTokenName[chainId][tokenName].