2
0
mirror of synced 2025-01-11 09:06:56 +00:00
2023-12-20 15:56:03 +01:00

34 lines
673 B
C#

namespace GethPlugin
{
public interface IHasEthAddress
{
EthAddress EthAddress { get; }
}
public class EthAddress
{
public EthAddress(string address)
{
Address = address.ToLowerInvariant();
}
public string Address { get; }
public override bool Equals(object? obj)
{
return obj is EthAddress address &&
Address == address.Address;
}
public override int GetHashCode()
{
return HashCode.Combine(Address);
}
public override string ToString()
{
return Address;
}
}
}