Skip to content

How to call a non-public variable within a contract? #3782

You must be logged in to vote

No, you cannot do that via evm.runCall. It is not possible to read "private" variables within the EVM. But, it is indeed possible outside the EVM via getStorageAt RPC calls.

Replies: 1 comment 2 replies

You must be logged in to vote
2 replies
@andreachello

@jochem-brouwer

Answer selected by andreachello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants