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

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