以太坊智能合约课01


Remix工具地址

https://remix.ethereum.org/

MetaMask安装地址

https://metamask.io/

以太坊浏览器地址

https://blockexplorer.one/eth/ropsten

合约代码


// SPDX-License-Identifier: MIT
pragma solidity >=0.8.18;

contract HelloWorld {
    string _name;

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

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




Loading Disqus comments...
Table of Contents