openzeppelin
ERC20 provide building blocks to quickly build ERC20 smart contract. Here is an simple example:
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
contract TutorialToken is ERC20 {
string public name = "TutorialToken";
string public symbol = "TT";
uint8 public decimals = 2;
uint public INITIAL_SUPPLY = 12000;
constructor() public {
_mint(msg.sender, INITIAL_SUPPLY);
}
}
I went through the ERC20 classes and didn't see security measure to prevent, such as, replay attack. Shall I as developer add the security measure on my own? How the smart contract above fend off replay attack and prevent impersonation (pretend as someone else to do transaction)?