Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions regarding the development of smart contracts
0
votes
1
answer
36
views
functionality for the delete
I have the function:
contract TaskContract {
function deleteTask(uint256 taskId, bool isDeleted) external {
if (taskToOwner[taskId] == msg.sender) {
tasks[taskId …
0
votes
2
answers
56
views
delete function question
I have the function:
contract TaskContract {
function deleteTask(uint256 taskId, bool isDeleted) external {
if (taskToOwner[taskId] == msg.sender) {
tasks[taskId].isDeleted = …
1
vote
1
answer
67
views
What's the point of adding event to interface?
Like in a sample code below.
Thanks.
interface ISomething {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spend …
1
vote
1
answer
211
views
Calling other smart contract onlyOwner question
can someone explain me why can't i call Kill contract from Helper contract if i set modifier and constructor to owner == msg.sender in Kill contract ? When i try to call from Helper its reverting and …
0
votes
1
answer
563
views
Call a function from different contract [closed]
I’m stuck, so every answer is appreciated.
What I want to achieve is to call an external function from dynamically created smart contracts as different owners, but restrict to call that function dire …
2
votes
2
answers
410
views
UUPS Upgrades using Foundry
I am wondering if any of you have tried to do UUPS smart contract upgrade using Foundry ? Similarly the same way you write a script in hardhat. If so, how to do it properly.
1
vote
Contract storing array returning addresses
That’s because when you call new = SimpleStorage() you are creating new smart contract SimpleStorage from StorageFactory and at the same time pushing it’s newly created smart contract address to the s …