About 9,840 results
Open links in new tab
  1. 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.

  2. 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 …

  3. 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);

  4. 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 …

  5. 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 …

  6. solidity - How to delete an element from a mapping? - Ethereum …

    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...

  7. 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 …

  8. 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 …

  9. 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 …

  10. solidity - Difference between `tx.gasprice`, `assembly { gasPrice ...

    Nov 5, 2024 · I created the following contract and deployed on Sepolia, including an inline assembly call which returns gas price for the transaction. The question is how and why does …