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.
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 ...
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) {
...
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 ...
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
solidity × 17997contract-development × 2624
remix × 2503
web3js × 1710
truffle × 1212
contract-design × 1152
blockchain × 1012
erc-20 × 948
go-ethereum × 939
tokens × 786
hardhat × 667
gas × 534
ethers.js × 522
contract-deployment × 514
ether × 506
javascript × 494
arrays × 466
evm × 458
nft × 422
transactions × 417
mapping × 407
uniswap × 393
erc-721 × 381
struct × 377
contract-invocation × 368