Challenge 13 confused (Spoilers!!!!!!!!!!!!!!!!) #474
-
I'm facing issue with challenge 13. I tried the challenge 13 by deploying it in 'local remix vm' and also deployed my own version of the challenge contract and the helper contract to 'sepolia' and I was able to solve the challenge both times. But when I try to solve the challenge by using 'write contract' in etherscan, It is reverting. |
Beta Was this translation helpful? Give feedback.
Answered by
shikhar229169
Jul 29, 2023
Replies: 1 comment 11 replies
-
@shikhar229169 tagging you cos it seems like you are the last person who solved this. Sorry for bothering you. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
And you can run this for the actual challenge contract, and then convert the value at that storage slot to decimal.