as simple if it didn't have func constructor?
@ninjaevm Tell me, i am sure you know the answer )
Never done it but the idea is to have a struct that point to the address of the most recent contract which you can uodate as you realese more versions
OZ has a nice library for that
I wrote upgradable contract But i need use one in other For example: contract A is ERC20Upgradable { Initialize () {} constructor } contract B { A public a; someFunc() { a = new instance() a.callSmth() } }
Ah I think you need to initialize contract A after creating the instance.
Обсуждают сегодня