I got to know that there is a size limitation for Ethereum contract, but to avoid this I split up functions of my contract in two sol files and one contract extends other contract and this solve the size limit problem but I just want to confirm is I am doing anything wrong or I am missing anything?
For example
Previously
File A.sol
Contract A {
function f1(){}
function f2(){}
function f3(){}
function f4(){}
}
Now
A.sol
import "./B.sol"
contract A is B{
function f3() public {}
function f4() public {}
}
B.sol
contract B{
function f2(){}
function f3(){}
}
and one contract extends other contract and this solve the size limit problem
- wrong! – goodvibration Dec 4 '20 at 15:36