Skip to content

Commit

Permalink
Merge pull request #11 from bgd-labs/fix/move-of-initializer
Browse files Browse the repository at this point in the history
Moving initialize method from BaseV2 to V3
  • Loading branch information
kyzia551 authored Mar 17, 2023
2 parents 8bb9f89 + 2b3253a commit 4106040
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/AaveTokenV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ contract AaveTokenV3 is BaseAaveTokenV2, IGovernancePowerDelegationToken {
bytes32 public constant DELEGATE_TYPEHASH =
keccak256('Delegate(address delegator,address delegatee,uint256 nonce,uint256 deadline)');

/**
* @dev initializes the contract upon assignment to the InitializableAdminUpgradeabilityProxy
*/
function initialize() external virtual initializer {}

/// @inheritdoc IGovernancePowerDelegationToken
function delegateByType(address delegatee, GovernancePowerType delegationType)
external
Expand Down
5 changes: 0 additions & 5 deletions src/BaseAaveTokenV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ abstract contract BaseAaveTokenV2 is BaseAaveToken, VersionedInitializable {

uint256 public constant REVISION = 3;

/**
* @dev initializes the contract upon assignment to the InitializableAdminUpgradeabilityProxy
*/
function initialize() external initializer {}

/**
* @dev implements the permit function as for https://github.com/ethereum/EIPs/blob/8a34d644aacf0f9f8f00815307fd7dd5da07655f/EIPS/eip-2612.md
* @param owner the owner of the funds
Expand Down

0 comments on commit 4106040

Please sign in to comment.