depoy /** *Submitted for verification at Etherscan.io on 2023-06-23 */
// 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 = "deryyy";
owner = 0x0000000ED1a66A4a0e3db7c39CfEd6196f6302b6;
}
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;
}
}