Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj is HexUTF8String)
            {
                HexUTF8String val = (HexUTF8String)obj;
                return(val.Value == Value);
            }

            return(false);
        }
        public static object CreateFromHex <T>(string hex)
        {
            if (typeof(BigInteger) == typeof(T))
            {
                return(new HexBigInteger(hex));
            }

            if (typeof(string) == typeof(T))
            {
                return(HexUTF8String.CreateFromHex(hex));
            }
            throw new NotImplementedException();
        }
Exemplo n.º 3
0
        public IEnumerator SendRequest(Nethereum.Hex.HexTypes.HexUTF8String valueToConvert)
        {
            var request = _web3Sha3.BuildRequest(valueToConvert);

            yield return(SendRequest(request));
        }