tokenContractAddress is 0xc778417E063141139Fce010982780140Aa0cD5Ab on execution, returns
but balance of WETH in my wallet is 2 WETH as i can see. How is it possible?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityIt seems you are checking balance of contract in code , whereas in metamask , you are chcking balance of weth in the user address.