Commit ac564630 authored by Kegan's avatar Kegan
Browse files

removed unlinking feature as it was unnecessary

parent 52437255
......@@ -7,7 +7,7 @@ import "@openzeppelin/contracts/utils/Address.sol";
// this is a way to store steam/eth wallet links without exposing what wallet is linked to what steam account
contract SteamToEtherSafe is Context{
contract SteamToEtherSafe is Context {
using Address for address;
mapping(uint256 => uint256) internal _links;
......@@ -45,14 +45,8 @@ contract SteamToEtherSafe is Context{
// what do we do if someone loses their account? forever broken steamid64 link?
function LinkAccount(uint256 hashed_steamid) public {
uint256 _wallet = uint256(keccak256(abi.encodePacked(_msgSender())));
require(_links[_wallet] == 0, "Account already linked, must unlink from the source wallet"); //prevent hackers/others from taking over an accuont link
_links[_wallet] = hashed_steamid;
function UnlinkAccount() public {
uint256 _wallet = uint256(keccak256(abi.encodePacked(_msgSender())));
_links[_wallet] = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment