From 4bc5e94af76db04f11921e343f5ac1dd356ecc1f Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Mon, 27 Dec 2021 12:24:37 -0300 Subject: [PATCH] Remove note about enabling self-delegation (cherry picked from commit a0a8bbb57f6a28ae5efb77b1ad06eab65aa93d0d) --- contracts/token/ERC20/extensions/ERC20Votes.sol | 2 -- contracts/token/ERC20/extensions/ERC20VotesComp.sol | 2 -- 2 files changed, 4 deletions(-) diff --git a/contracts/token/ERC20/extensions/ERC20Votes.sol b/contracts/token/ERC20/extensions/ERC20Votes.sol index 8f713e66d..5b4899e48 100644 --- a/contracts/token/ERC20/extensions/ERC20Votes.sol +++ b/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._ */ diff --git a/contracts/token/ERC20/extensions/ERC20VotesComp.sol b/contracts/token/ERC20/extensions/ERC20VotesComp.sol index 590a3c538..422318bb8 100644 --- a/contracts/token/ERC20/extensions/ERC20VotesComp.sol +++ b/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._ */