contract ExampleContract { function getANumber() public pure returns (uint256) { uint256 x = 1; return x; } function getABoolean() public pure returns (bool) { bool y = true; return y; } function getAnAddress() public pure returns (address) { // Vitalik Buterin's address address z = 0xd8da6bf26964af9d7eed9e03e53415d37aa96045; return z; } function getAnotherAddress() public pure returns (address) { // address of the USDC stablecoin address z2 = 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48; return z2; } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter