About 9,890 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 - Difference between require and assert and the difference ...

    Solidity implements a formal verification approach based on SMT (Satisfiability Modulo Theories) and Horn solving. The SMTChecker module automatically tries to prove that the code satisfies …

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

  5. solidity - What does the function "abi.encodeWithSelector (bytes4 ...

    Oct 5, 2020 · I tried to edit this function according to my smart contract but I couldn't understand this function. I read the docs already. can someone explain this to me with more details and …

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

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

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

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

  10. solidity - invalid opcode: opcode 0x5f not defined - Ethereum …

    May 15, 2023 · I'm new to Solidity and it's my first try to write a smart contract using Openzeppelin, Pancakeswap and BEP20 libraries basically to make a BEP-20 token. When i …