DId anybody here ever work with a contract that needed to call a function of another contract, which was behind a proxy?

So I got contract A, which needs to query the balanceOf() of contract B, which is behind the proxy contract P.
I guess contract A now needs to call contract Ps _delegate() function, but what are the correct params?

Jun 2, 2022, 9:30 PM
you do not need to worry about it. proxy will forward all calls to implementation contract through DELEGATECALL on its fallback function.
Jun 2, 2022, 9:35 PM
so if I go on contract A like InterFaceContractB(proxyCOntractAddress).balanceOf(contractAaddress) it will work?
Jun 2, 2022, 9:36 PM
yes
Jun 2, 2022, 9:44 PM
thanks a lot mate
Jun 2, 2022, 9:44 PM
np
Jun 2, 2022, 9:47 PM

© 2024 Draquery.com All rights reserved.