瀏覽代碼

Remove note about enabling self-delegation

Francisco Giordano 3 年之前
父節點
當前提交
a0a8bbb57f

+ 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._
  */