Hello, I am super newbie here trying smart contracts for the first time, using remix with metamask connected in my browser (on BSC testnet). I found this simple code and deployed it, everything worked and the contract is deployed, I also imported this test token symbol into my metamask using contract address
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract WW is ERC20 {
constructor(uint256 initialSupply) ERC20("WW coin test", "WW") {
_mint(msg.sender, initialSupply);
}
}
Then I went to openzeppelin wizard and created this simple code, simple enough that there cannot be really any bug in the code but I cannot deploy it, I am getting code 32603 with "Internal Server Error" message from Metamask. What am I doing wrong? My metamask seem to be workign correctly, I have a TBNB balance obtained in test faucet etc. I searched google extensively, a few people have this error code 32603 but no real solution
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract WW2Test is ERC20, Ownable {
constructor() ERC20("WW2 test", "WW2") {
_mint(msg.sender, 100 * 10 ** decimals());
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
}