1

Is it possible to call internal functions from a function called using delegatecall?

Contract A call contract B using delegatecall, contract B needs to call an internal function from contract A.

3

No, it's not possible.

Delegatecall simply calls the function inside the context of the current contract. It's like saying "Run function A and do whatever you want in MY storage".

It has nothing to do with visibility, only storage.

It's a good question though, certainly nonintuitive. ✌️

1
  • 1
    Just wanted a confirmation, thanks – Steffel Jun 11 at 14:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.