1. Ke remix.ethereum.org
2. Create new file
3. Isi nama terserah .sol contoh base.sol
4. Paste di file tadi
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
contract testBase {
uint256 number;
function store(uint256 num) public {
number = num;
}
function retrieve() public view returns (uint256){
return number;
}
}
5.Click Solidity Compiler
– Compile file tadi
– Click Logo ETH ( Deploy )
– Click Environment
– Select ” Injected Provider – Metamask ”
– Deploy & Accept Contract Via Metamask
Tutor fee murmer