i am trying to access a value from the constructor in a require statement, works in a lower version of solidity, but in the newest version 0.8.4 i can't, i also get a warning that visibility for constructor is ignored. Anyone knows how i can access it in my function?

May 4, 2021, 9:16 PM
Constructor in a require statement?
And yes, you don't have to specify visibility explicitly any more
May 4, 2021, 9:23 PM
the constructor assign it to an variable, and i can access that variable in 0.6.12, if i go to an higher version then i can't for some reason
May 4, 2021, 9:23 PM
What error does it gives
May 4, 2021, 9:24 PM
it says the called function should be payable, but only IERC20 tokens are transferred out of the contract
May 4, 2021, 9:25 PM
Can you share the code
May 4, 2021, 9:27 PM
i send you a dm
May 4, 2021, 9:30 PM

© 2024 Draquery.com All rights reserved.