Skip to content

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

Discussion options

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

Comment options

You must be logged in to vote
2 replies
@andreachello
Comment options

@jochem-brouwer
Comment options

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