예제 #1
0
        public static TError DecodeExceptionEncodedData <TError>(this string data) where TError : class, new()
        {
            var errorABI = ABITypedRegistry.GetError <TError>();

            if (errorABI.IsExceptionEncodedDataForError(data))
            {
                return(_functionCallDecoder.DecodeFunctionCustomError(new TError(), errorABI.Sha3Signature, data));
            }
            return(null);
        }