Learning Solidity : Tutorial 1 The Basics

preview_player
Показать описание

If you would like to donate some Ethereum my wallet is: 0xC8c8c3Fae80e3eD236970e1C93AcF5B91D0993e2
Many thanks!
Рекомендации по теме
Комментарии
Автор

Wow, I never expected Johhny Sins to teach me developing skills ;) .

viktorspyrantis
Автор

For anyone who is not getting any results when you click getName or getAge, I added the constant keyword and it worked just fine:

pragma solidity ^0.4.0;

contract myFirstContract{
string private name;
uint private age;

function setName(string newName) {
name = newName;
}

function getName() constant returns (string) {
return name;
}

function setAge(uint newAge) {
age = newAge;
}

function getAge() constant returns (uint) {
return age;
}
}

MattStanford
Автор

Greetings from Ukraine!
James, you definitely have a new subscriber! I'm really happy to discover your channel: well-made content about an interesting subject from an experienced developer. Thank you!!

coderevue
Автор

Great starter video, I'm a C# dev looking to expand out into blockchain Solidity stuff. This video was my first intro to the topic and I found it really useful. The IDE has changed a little, but I'm getting the hang of things. Thank you sir and look forward to going through the other tutorials. Subscribed (and very appreciative) 👍🏻

jontybonty
Автор

Great tutorial James! Ruby Developer here. getters and setters methods sample help me grasp the basics of Solidity.

clairebayoda
Автор

I made some modifications, and now it worked well.
pragma solidity >=0.4.22 <0.6.0;


contract myFirstContract{
string private name;
uint private age;

function setName(string memory newname) public {
name = newname;
}
function getName() public view returns(string memory) {
return name;
}
function setAge(uint newage)public{
age = newage;
}
function getAge() public view returns(uint) {
return age;
}

}

chw
Автор

Started learning video to begin with..

vergilknd
Автор

Great tutorial mate, so simple.. just what beginners need to get excited to learn more!

ozzywaddcreative
Автор

(correct me if i am wrong)
Note:

While following up with this video, you need to do slight changes. The function should have access modifier, in this case setName(string newName) public {}

Same for getter, getName() public view/pure return(string)

MrMiraculus
Автор

I've just dicovered your training today, and I liked a lot. Good content and good instructor skills

rodrigobezerra
Автор

For the latest version (as of 11/06/2021):

pragma solidity ^0.8.4;

contract Identity {
string private name;
uint private age;

function setName(string memory nm) public {
name = nm;
}
function setAge(uint ag) public {
age = ag;
}

function getName() view public returns (string memory) {
return name;
}

function getAge() view public returns (uint) {
return age;
}

}

sumitguha
Автор

Thanks for making these videos. It's very easy to follow. Please keep it up.

allanjunli
Автор

Great Job, I need more Tutorials all the way to the advanced level !!

salemabualem
Автор

Thank you for this awesome turial. IMHO the best under all I've watched.

WoidSnowGlacier
Автор

I think it's time to understand Solidity for this NFT revolution.

bobeglz
Автор

you are a great teacher. thank you for the tutorial

tabbychauri
Автор

Great vids James thanks, Certified Bitcoin Professional

nickwalshblog
Автор

Very good introduction video. Thank you!

MN-lxry
Автор

Thank u james, this video was very userful to me. im your newest subscriber.

caiohatoum
Автор

love the vid bro  , I will try to follow all of them, thanks for the lessons.

carlosfernandez