Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
saad-121 opened this issue Oct 23, 2021 · 2 comments

Comments

@saad-121
Copy link

saad-121 commented Oct 23, 2021

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
Copy link

atang08 commented Nov 15, 2021

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

@atang08
Copy link

atang08 commented Nov 16, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants