I have deployed Standard ERC20 token using openZeppellin on REMIX IDE.
Transfer function working fine but when I am trying to transfer Token using transferFrom function and facing this error as below:-
Code to reproduce
// contracts/GLDToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.1.0/contracts/token/ERC20/ERC20.sol";
contract GLDToken is ERC20 {
constructor(uint256 initialSupply) public ERC20("Gold", "GLD") {
_mint(msg.sender, initialSupply);
}
}
Environment
REMIX IDE