
Solidity Forum - The place for all Solidity developers, tool builders ...
2024年9月4日 · The place to discuss design and usage of and changes to the Solidity programming language.
What are the virtual and override keywords in Solidity?
2019年12月27日 · 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 …
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 - `external` vs `public` best practices - Ethereum Stack …
2017年7月4日 · The difference is because in public functions, Solidity immediately copies array arguments to memory, while external functions can read directly from calldata. Memory …
Ethereum Stack Exchange
Q&A for users of Ethereum, the decentralized application platform and smart contract enabled blockchain
solidity - tuple [] for a function input. How to use it? - Ethereum ...
2021年9月3日 · 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 …
solidity - How to fill dynamic in-memory array - Ethereum Stack …
2018年4月26日 · 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 …
solidity - Getting infinite gas estimates for simple functions ...
2017年12月29日 · I am testing out solidity in remix ide using simple contracts. This is the contract that I wrote: contract mortal { address owner; function mortal() { owner = msg.sender; } …
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 …
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 …