Format code in the forum

The forum supports Markdown (CommonMark).

To format code in the forum you can surround it with three back ticks.
The forum will highlight syntax (including Solidity)

```
Your code goes here
```

The following is an example contract:

Box.sol

// contracts/Box.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

contract Box {
    uint256 private value;

    // Emitted when the stored value changes
    event ValueChanged(uint256 newValue);

    // Stores a new value in the contract
    function store(uint256 newValue) public {
        value = newValue;
        emit ValueChanged(newValue);
    }

    // Reads the last stored value
    function retrieve() public view returns (uint256) {
        return value;
    }
}

For help with CommonMark, see: https://commonmark.org/help/


This is a wiki post, please edit/update to improve

3 Likes
Help to get contract verified on BSCScan
Verify & Publish Contract Source Code error
Verify Solidity 0.8 ERC20 token deployed using Remix
Fee on transfer token
Allowance error in erc20 token receive contract
Transfer ERC20 to zero address
Can't verify smart contract on Bscscan
Address payable error
Error on deploy: contract may be abstract, not implement an abstract parent’s methods completely or not invoke an inherited contract’s constructor correctly
How to add recover ERC20 and withdraw Ether to a token?
Implement ERC20 token with burn and mint functions?
Set ERC20 decimals to value other than 18
Verify a contract extending OpenZeppelin Contracts with a constructor deployed from a factory?
Which package to use for upgradable and ownable contracts?
Migrated contract to Solidity 0.7.6 and get warnings: Visibility for constructor is ignored
Function _setTokenURI() in ERC721 is gone with pragma ^0.8.0
HardHat TypeError: Cannot read property 'replace' of undefined
Verify token timelock deployed using Remix on BSC
ParserError: Expected ‘;’ but got ‘contract’ importing GSNReceipt for token
Shadowed declaration problem
Add Charity Fee and Burn Fee to Solidity
Unable to verify contract on Binance smart chain
Truffle compiling Error
Truffle console: TypeError: SimpleContract.at(…).getName is not a function
Custom Crowdsale purchase fails
Compile error: The "extcodehash" instruction is not supported by the VM version "byzantium" you are currently compiling for
IERC20 and Upgradable token contract
ERC20 metadata and ERC20Detailed
Unused function parameter
How to create mintable ERC20 but not pausable?
Please help with my source code :'(

A post was split to a new topic: We were unable to retrieve a valid Contract ABI for this contract