소스 검색

Remove note about enabling self-delegation

Francisco Giordano 3 년 전
부모
커밋
a0a8bbb57f
2개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 2
      contracts/token/ERC20/extensions/ERC20Votes.sol
  2. 0 2
      contracts/token/ERC20/extensions/ERC20VotesComp.sol

+ 0 - 2
contracts/token/ERC20/extensions/ERC20Votes.sol

@@ -21,8 +21,6 @@ import "../../../utils/cryptography/ECDSA.sol";
  *
  * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
  * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
- * Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this
- * will significantly increase the base gas cost of transfers.
  *
  * _Available since v4.2._
  */

+ 0 - 2
contracts/token/ERC20/extensions/ERC20VotesComp.sol

@@ -19,8 +19,6 @@ import "./ERC20Votes.sol";
  *
  * By default, token balance does not account for voting power. This makes transfers cheaper. The downside is that it
  * requires users to delegate to themselves in order to activate checkpoints and have their voting power tracked.
- * Enabling self-delegation can easily be done by overriding the {delegates} function. Keep in mind however that this
- * will significantly increase the base gas cost of transfers.
  *
  * _Available since v4.2._
  */