
Solidity Forum - The place for all Solidity developers, tool builders ...
Jan 7, 2025 · 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 …
Sorting an Array of integer with Ethereum
Feb 20, 2016 · I'm trying to have a simple array of integer sorted in Solidity but i couldn't find any real ressources so instead i'm trying to do it "the hard way" but so far with very little success. Is …
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 - 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 …
solidity - How to Fix "Stack Too Deep" Error? - Ethereum Stack …
Jul 7, 2017 · If there are too many parameter or local variable in the function , solidity will throw "stack too deep". To resolve the issue, convert the big struct into small struct or use the local …
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 - `external` vs `public` best practices - Ethereum Stack …
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 …
solidity - How to fill dynamic in-memory array - Ethereum Stack …
Apr 26, 2018 · For some reason solidity doesn't allow to push values into memory array Member "push" is not available in bytes32[] memory outside of storage. Here is sample contract code: …
solidity - What's the difference between 'address' and 'address …
I saw a Solidity smart contract where some variables were declared with the type address and some were declared with the type address payable. What are the differences between the …