Skip to content

Challenge 13 confused (Spoilers!!!!!!!!!!!!!!!!) #474

Answered by shikhar229169
Abelaby asked this question in Q&A
Discussion options

You must be logged in to vote

I got this now why its happening.
Actually as you modified your smart contract, and removed the inherited contract AFoundryCourseChallenge, so the storage slots changed.
As the variables of AFoundryCourseChallenge are now not available in your challenge contract.

So to get storage slot of contract, you can get it easily by cast command:

cast storage <contract address> <storage slot> --rpc-url <network_rpc_url>

And you can run this for the actual challenge contract, and then convert the value at that storage slot to decimal.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@shikhar229169
Comment options

@Abelaby
Comment options

@Abelaby
Comment options

@shikhar229169
Comment options

Answer selected by Abelaby
@Abelaby
Comment options

@Ynyesto
Comment options

@Ynyesto
Comment options

@SyedAsadKazmi
Comment options

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