Bước 1: Truy cập Remix
Tạo thư mục mới trên Remix
Đặt tên thư mục theo dạng name.sol
Copy nguyên dòng code bên dưới sau đó paste vào thự mục mới tạo
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
contract FunctionTypes{
uint256 public number = 5;
constructor() payable {}
function addView() external view returns(uint256 new_number) {
new_number = number + 1;
}
}
Chuyển sang mục Solidity Compiler => Ấn tiếp vào Compile name.sol
Chuyển sang mục Deploy & run => Connect ví Meta => Deploy
Collect this post to permanently own it.
Subscribe to FFCRYPTO COMMUNITY and never miss a post.
- Loading comments...