contract AddressExample { // Standard Ethereum address to store a user's address address public userEthereum; // Payable Ethereum address to store a recipient's address for Ether transactions address payable public recipientEthereumAddress; // Function to set the standard Ethereum address function setUserEthereumAddress(address _userEthereumAddress) public { userEthereum = _userEthereumAddress; } // Function to set the payable Ethereum address function setRecipientAddress(address payable _recipientEthereumAddress) public { recipientEthereumAddress = _recipientEthereumAddress; } }
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