
Solidity Forum - The place for all Solidity developers, tool builders ...
Jan 30, 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 …
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 - What does the keyword "memory" do exactly?
Mar 1, 2016 · I've been looking through the code of Etherdice and noticed that some variables are declared like ParserResult memory result; and I haven't found the keyword …
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 "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 …
What is the purpose of "unchecked" in Solidity?
Nov 9, 2021 · 34 According to Solidity documentation: Prior to Solidity 0.8.0, arithmetic operations would always wrap in case of under- or overflow leading to widespread use of libraries that …
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: …
What's the difference between 'msg.sender' and 'tx.origin'?
Mar 7, 2016 · If either are used in the body of a Solidity function that may change the state of a contract (write call), what's the primary difference and/or benefit of using one over the other. …
solidity - How to accept stabel coins such as USDT/USDC in a …
Dec 18, 2022 · I am trying to create a contract in solidity that can accept ERC20 tokens more specifically stable coins like USDT/USDC. I am not sure how to make a minimum token …