scaffold-eth / se-2-challenges

SpeedRunEthereum challenges (Powered by Scaffold-ETH 2)
https://speedrunethereum.com
MIT License
102 stars 184 forks source link

balanceOf doesn't work on Sepolia #226

Closed fabiobozzo closed 1 day ago

fabiobozzo commented 1 week ago

I followed the speed run challenge #0 step-by-step.
I transferred to the burner wallet below both from a public faucet and my own sepolia EoA:
https://sepolia.etherscan.io/address/0xc39845BF85DD5C10abEc0872410dA7466F87F6C7

The balance remains zero, therefore I can't deploy.

➜  challenge-0-simple-nft git:(challenge-0-simple-nft) ✗ yarn account  --network sepolia

Public address: 0xc39845BF85DD5C10abEc0872410dA7466F87F6C7 

-- localhost -- 📡
   balance: 0
   nonce: 0
-- mainnet -- 📡
   balance: 0
   nonce: 0
-- sepolia -- 📡
   balance: 0
   nonce: 0
technophile-04 commented 1 week ago

Hey @fabiobozzo thanks! I think this might be some public RPC issue which we are using and which is not getting latest data from blockchain.

If you run yarn deploy --network sepolia it should deploy since your account 0xc39845BF85DD5C10abEc0872410dA7466F87F6C7 already have some balance

fabiobozzo commented 1 week ago

Unfortunately, it didn't. I had to switch sepolia.url to https://sepolia.infura.io/v3/<mykey> in hardhat config, for the balance to be fetched and I think the deployment needed it too (?)

technophile-04 commented 1 day ago

Thanks! closing this checkout https://github.com/scaffold-eth/se-2-challenges/pull/229#issuecomment-2497666948