Smart Contract Deployment
1. What is Remix?
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
contract TestBitRockSimpleCounter {
int private count = 0;
function incrementCounter() public {
count += 1;
}
function decrementCounter() public {
count -= 1;
}
function getCount() public view returns (int) {
return count;
}
}2. Compile Code
3. Deploy and view on Bitrock Explorer
4. The smart contract is ready to be used

Last updated


