
Solidity Forum - The place for all Solidity developers, tool builders ...
Dec 27, 2024 · The place to discuss design and usage of and changes to the Solidity programming language.
What are the virtual and override keywords in Solidity?
Dec 27, 2019 · For multiple inheritance, the most derived base contracts that define the same function must be specified explicitly after the override keyword. Functions with the private visibility cannot be …
solidity - tuple [] for a function input. How to use it? - Ethereum ...
Sep 3, 2021 · When you write a struct in Solidity, it gets mapped as tuple in the ABI. The actual structure of the struct can be seen in the components field (which may be recursive). In your case, the struct …
solidity - How does emit work? - Ethereum Stack Exchange
In the following example from the Solidity documentation, what does emit do? highestBidder = msg.sender; highestBid = msg.value; emit HighestBidIncreased(msg.sender, msg.value);
solidity - How to delete an element from a mapping? - Ethereum Stack ...
I have a mapping like this: struct data { string name; string nickname; } mapping (address => data) public user; What is the correct way to delete one element from the variable user...
solidity - What does the indexed keyword do? - Ethereum Stack …
What does the "indexed" keyword do in the below line of code? I'm guessing it just tells the event object that the following input should be logged? Can we use it other places ie outside of event...
solidity - How to "flatten" imported contracts - Ethereum Stack Exchange
In Visual Studio Code you can flatten smart contacts using Solidity extension from Nomic Foundation by right-click on the file you want to flatten and choosing Hardhat: Flatten this file and its dependencies …
solidity - What is msg.value? - Ethereum Stack Exchange
I guess I need to understand the msg (message) object more, when you send transaction, you are executing a transfer or send function of a contract, how does the message object come into the …
solidity - Upgradeable smart contracts - Ethereum Stack Exchange
However, I also recommend checking Proxy Libraries in Solidity that is posted by Zeppelin Solutions and Aragon. There is a planning to make an industry standard for this matter. You have to have a good …
solidity - `external` vs `public` best practices - Ethereum Stack Exchange
Jul 4, 2017 · The difference is because in public functions, Solidity immediately copies array arguments to memory, while external functions can read directly from calldata. Memory allocation is expensive, …