link : Click!
Feel free donate to my EVM address
EVM :
0x6f5c1bEB0Ae14D1422B4B3b874ac6D3d225f9940
git clone https://github.com/gadroen/swisstronik.git
cd swisstronik
npm install
create .env file in root project
PRIVATE_KEY="your private key"
- Open contract folder
- Create Hello_swtr.sol file
- Copy this code and paste there
/// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;
//This contract is only intended for testing purposes
contract Swisstronik {
string private message;
/**
* @dev Constructor is used to set the initial message for the contract
* @param _message the message to associate with the message variable.
*/
constructor(string memory _message) payable{
message = _message;
}
/**
* @dev setMessage() updates the stored message in the contract
* @param _message the new message to replace the existing one
*/
function setMessage(string memory _message) public {
message = _message;
}
/**
* @dev getMessage() retrieves the currently stored message in the contract
* @return The message associated with the contract
*/
function getMessage() public view returns(string memory){
return message;
}
}
npm run compile
npm run deploy
npm run get-message
npm run set-message
- Open the deployed-adddress.ts (location in utils folder)
- Copy the address and paste the address in testnet dashboard
- push this project to your github and paste your repository link in testnet dashboard
by : github : gadroen telegram : @EwinGadroen
//0x6f5c1bEB0Ae14D1422B4B3b874ac6D3d225f9940//