Is there anyway to import Ownable contract into the "contract ERC20 is Context, IERC20 {}"?
I have to make a function onlyOwner. Ownable is declared outside this contract, but in the same file
Jul 20, 2021, 12:26 PM
use
is Ownable
is Ownable
contarct MyToken is Context, IERC20, Ownable
did you edit the file ? or only on remix?
https://forum.openzeppelin.com/t/how-to-verify-tiki-forks-on-etherscan-bscscan/12599
ok remix code is the same of the one on the file?
Jul 20, 2021, 12:30 PM
I tried that actually but since I'm using Ownable on another contract within this (the main token contract), it gives the error,
Linearization of inheritance graph impossible "Relevant source part starts here and spans across multiple lines".
I'm assuming you can't use Ownable on two different contracts at once?
Linearization of inheritance graph impossible "Relevant source part starts here and spans across multiple lines".
I'm assuming you can't use Ownable on two different contracts at once?
Jul 20, 2021, 12:31 PM
Context before Ownable
Jul 20, 2021, 12:32 PM
Should put context there?
Jul 20, 2021, 12:35 PM
before Ownable
Jul 20, 2021, 12:35 PM
Still same error
Don't worry. I'll read more solidity documentation and try to figure it out
Thanks for the time :)
Jul 20, 2021, 12:38 PM
yes
Please check group in bio
Jul 20, 2021, 1:28 PM
How?
Jul 20, 2021, 1:30 PM
to == uniswapV2pair means a sell
from == uniswapV2pair means a buy
Jul 20, 2021, 1:30 PM