You are on page 1of 1

📣Swisstronik Early Bird program

First 100 selected applicants

Tutorial: https://www.tiktok.com/@airdropsultan.id/video/7247749157828431109

Deploy Contract di http://remix.ethereum.org dengan menggunakan command di bawah.

task dan detail cek disini :


https://urlis.net/i98t8d1j

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract Register {
string public github;
address public owner;

struct Referral {
address referralAddress;
string referralString;
}

Referral[] public referrals;

constructor() {
github = "Alfonova-Node";
owner = 0x850Be5564003F2247111129F045d7Ff4139bB8AD;
}

function addReferral(address _referralAddress, string memory _referralString)


external {
require(msg.sender == owner, "Only the owner can add referrals.");
referrals.push(Referral(_referralAddress, _referralString));
}

function totalReferrals() public view returns (uint256) {


return referrals.length;
}
}

You might also like