chapter2-code-1
Thu Mar 30 2023 07:22:12 GMT+0000 (Coordinated Universal Time)
Saved by
@RareSkills
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;
}
}
content_copyCOPY
Comments