2019-12-27 使用remix.hpb.io, hpbsc
1.1 编写简单合约;
pragma solidity 0.4.25;
contract HelloHpbForCheckContract {
string private name;
event println(string HelloHpb);
function setName(string memory newName) public {
name = newName;
emit println(newName);
}
function getName() public view returns (string memory) {
return name;
}
}
1.2 合约编译与发布;
1.2.1 编译

image.png
1.2.2 点击Deploy ,稍后点击send transaction;

image.png

image.png
1.2.3 点击确认;

image.png
1.2.4 出现发布合约的交易hash 连接代表发布成功

image.png
发布合约HASH
合约名称 |
合约地址 |
交易hash |
HelloHpbForCheckContract |
0x6025f67122dcec4adfaacb0d305330a4baf0c7b5 |
0x611214cdbe7fa3b10173acb3dcd7be84e59bcb62dec1b5ba5ba1037d7693fdc4 |
2. 浏览器验证合约;
2.1 输入参数;

image.png
2.2 点击发布,返回结果;

image.png

image.png
3. 此时简单合约验证已经完成,合约验证的背后逻辑各位同学可能会比较感兴趣,会在下次总结。
本文标题:2019-12-27 使用remix.hpb.io, hpbsc
本文链接:https://www.haomeiwen.com/subject/kkvdoctx.html
网友评论