Пример #1
0
 public static FunctionABI GetFunctionABI <TFunctionMessage>()
 {
     if (!_functionAbiRegistry.ContainsKey(typeof(TFunctionMessage)))
     {
         _functionAbiRegistry[typeof(TFunctionMessage)] = _abiExtractor.ExtractFunctionABI(typeof(TFunctionMessage));
     }
     return(_functionAbiRegistry[typeof(TFunctionMessage)]);
 }
Пример #2
0
 public static FunctionABI GetFunctionABI(Type functionABIType)
 {
     if (!_functionAbiRegistry.ContainsKey(functionABIType))
     {
         var functionAbi = _abiExtractor.ExtractFunctionABI(functionABIType);
         _functionAbiRegistry[functionABIType] = functionAbi ?? throw new ArgumentException(functionABIType.ToString() + " is not a valid Function Type");
     }
     return(_functionAbiRegistry[functionABIType]);
 }