Contracts
More information about Contract in Solidity
constructor
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
// Base contract X
contract X {
string public name;
constructor(string memory _name) {
name = _name;
}
}State variable visibility
Function visibility
Getter function
Constants and immutable state variables
Pure function
Payable functions and addresses
Receive Ether and Fallback function
Oracle
Last updated