Does anybody know whether I can have a struct within an Interface and then build a getter for it?
So assuming I have 2 files:
File 1:
contract A{
struct Test{}
getTestById() -> return Test test
}
File 2:
interface IConA{
struct Test{}
getTestByID() external …
}
contract B {
//create an object of Type Test that pulls data from contract A via getTestByID()
}
Aug 29, 2021, 10:56 AM
You may want to create a library and put the struct in it.
Aug 29, 2021, 11:27 AM
Will look into that, thanks
Aug 29, 2021, 11:28 AM
It's not linear
It's nonlinear. The closer the transaction size is to pool size, the more significant the impact is
Aug 29, 2021, 1:17 PM