Standard Ethereum address to store a user's address
Sat Nov 11 2023 10:24:59 GMT+0000 (Coordinated Universal Time)
Saved by
@temycodes
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;
}
}
content_copyCOPY
Comments