Created custom ERC20 contract, balanceOf msg.sender is zero

Advertisements I’ve created a ERC20 contract in Remix: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract MyToken is ERC20 { constructor(string memory name, string memory symbol) ERC20(name, symbol) { _mint(msg.sender, 1002000); } } Then I deployed it: But the balance of msg.sender is zero: Does anyone know what’s wrong? >Solution : I just tried… Read More Created custom ERC20 contract, balanceOf msg.sender is zero

React custom hook not rendering

Advertisements I am building an app with React using Remix, fly.io for deployment. I have a custom React hook useCountdown that has the following code: import { useEffect, useState } from ‘react’; const useCountdown = (targetSeconds) => { const countDownSeconds = targetSeconds const [countDown, setCountDown] = useState(countDownSeconds); useEffect(() => { const interval = setInterval(() =>… Read More React custom hook not rendering

couldn't declare solidity version in remix

Advertisements I tried initializing solidity version but I get this error, how to di it right way paragma solidity ^0.8.14; error from solidity: ParserError: Expected ‘;’ but got ‘^’ –> .deps/SimpleStorage.sol:1:18: | 1 | paragma solidity ^0.8.14; | >Solution : should be pragma instead of paragma

Remix not showing function button after successful deployment

Advertisements I am trying out Solidity on Remix and I can successfully deploy contracts. However, I expect to see the function button after my deployment is done (as it contains multiple functions) but it doesn’t come up : Can’t see function button after deployment. Is this browser related as I have tried multiple browsers? As… Read More Remix not showing function button after successful deployment