where is data store in blockchain?

by Batuhan Özkan   Last Updated May 15, 2019 22:28 PM

for example we have contract like this:

contract Sample {
    string public name = "Moore ath John Yuur Gha";

    function set(string memory _name) public {
        name = _name;
    }

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

after we called set function and we changed variable. When we call get function, where did we get data? Where is new data stored in blockchain?



Related Questions


Updated April 25, 2018 07:28 AM

Updated September 18, 2018 14:28 PM

Updated November 27, 2017 11:28 AM

Updated July 06, 2017 19:28 PM

Updated August 10, 2017 14:28 PM