Solidity Programs1 6
Solidity Programs1 6
sol
contract Mycontract1{
Mycontract2.sol
contract Mycontract2 {
Mycontract3.sol
contract Mycontract3 {
Mycontract4.sol
contract Mycontract4 {
hey=_hey;
no=_no;
Mycontract5.sol
contract Mycontract5 {
hey=_hey;
no=_no;
}
List of Experiments:
Experiment 1 :
How to navigate to the Remix IDE web URL on the browser
and exploring the various tabs and features of the IDE.
//default values
Experiment 4:
// Creating a contract
contract Types {
contract LearningStrings
{
string public text;
Steps to be followed:
1. Open your Remix IDE and click the Create new file button to
create a student.sol file
contract structSample {
struct student
{
string name;
uint256 age;
uint256 id;
}
//create instance
student _studata;
_studata.name = _sname;
_studata.age = _sage;
_studata.id = _sid;
uint256,uint256)
2.3 Observe that ABI and Byte code buttons are displayed on the screen.
This indicates that the Solidity smart contract has been compiled
without an error
2. Clicking the Compilation Details button will reveal the ABI and the
Byte code of the student.sol file