Hello,
As I had very similar comments and questions as the ones brought up by Matthias_Zimmermann, I am wondering if you could elaborate a bit more on the solution that you provided. Indeed, in practice, in a foundry test execution, how can you read an ERC-1967 admin slot of a trusted implementation that was deployed during that execution?
Thanks in advance for your time and consideration.
N.B: I created a similar ticket here, which also addresses another (related) question.
EDIT: I was thinking that maybe the solution brought up by Matthias: an extension of the TransparentUpgradableProxy contract containing a public getter for the admin could be suited to a testing environment? Or is there any arguments against it that would make it a bad idea?