github-actions 3 سال پیش
والد
کامیت
96d2e2addd

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

@@ -20,8 +20,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._
  */

+ 0 - 4
docs/modules/api/pages/token/ERC20.adoc

@@ -2821,8 +2821,6 @@ power can be queried through the public accessors {getVotes} and {getPastVotes}.
 
 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._
 
@@ -3050,8 +3048,6 @@ power can be queried through the public accessors {getCurrentVotes} and {getPrio
 
 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._