aave / protocol-v2

Aave Protocol V2
https://aave.com
Other
659 stars 745 forks source link

FlashLoanReceiverBase.sol : TypeError: Public state variable has override specified but does not override anything. #239

Open saad-121 opened 2 years ago

saad-121 commented 2 years ago

I am getting errors re these two lines on the FlashLoanReceiverBase.sol:

  ILendingPoolAddressesProvider public immutable override ADDRESSES_PROVIDER;
  ILendingPool public immutable override LENDING_POOL;

as it is not clear what they are overriding. There are no matching variable names on the IFlashLoanReceiver interface.

When I try to truffle compile, I get this error for both lines:

TypeError: Public state variable has override specified but does not override anything.

I am tempted to just remove the override but don't want to do something that may have dangerous repercussions.

If I do remove the overrides (just for testing), I get this error about the constructor:

DeclarationError: Abstract contracts cannot have public constructors. Remove the "public" keyword to fix this.

Assistance on these errors would be appreciated. Thank you.

atang08 commented 2 years ago

have this issue too, if i figure something out, i will try to update this.

atang08 commented 2 years ago

yeah, I just ended up removing public and override and error is gone. hopefully someone can have a better solution to this.