Skip to main content
1 vote

Is it possible to read a deployed contract's storage slot with solidity?

No, a solidity contract can NOT read private storage variable from another contract. See https://solidity-by-example.org/visibility/. Using web3, this would be possible as storage content is public.
Strapontin's user avatar
1 vote

How to use sepolia deployed erc-20 token for my project?

Although the question is very broad. I'll try to write the steps. You'll need a token contract deployed before deploying this game contract, make sure you have the ability to mint the tokens. You'll ...
Zartaj Afser's user avatar
  • 4,945
1 vote

Chainlink VRF 2.5 fund subscription with native token programmatically

You can add this function in your SubscriptionManager contract: function topUpSubscriptionWithNativeToken(uint256 amount) external payable onlyOwner { if (msg.value < amount) { ...
SYED ASAD KAZMI's user avatar
1 vote

Damn Vulnerable

This type of challenges use simplified versions of real exploits. This repo has several contract with vulnerabilities https://github.com/smartbugs/smartbugs-curated. Similarly you could start with the ...
Ismael's user avatar
  • 30.3k
1 vote
Accepted

openzeppelin 5.0.x TransparentUpgradeableProxy upgradeAndCall error

https://forum.openzeppelin.com/t/5-0-transparentupgradeableproxy-upgradeandcall-error/41540 In the openzeppelin forum, I found the answer.
jamie.f's user avatar
  • 13

Only top scored, non community-wiki answers of a minimum length are eligible