Пример #1
0
 public static Address GetAddressForNative(NativeContractKind kind)
 {
     return(GetAddressForName(kind.GetName()));
 }
Пример #2
0
 public static IContract GetContract(this IRuntime runtime, NativeContractKind nativeContract)
 {
     return(runtime.GetContract(nativeContract.GetName()));
 }
Пример #3
0
 public static Address GetContractAddress(this IRuntime runtime, NativeContractKind nativeContract)
 {
     return(Address.FromHash(nativeContract.GetName()));
 }
Пример #4
0
 public static VMObject CallContext(this IRuntime runtime, NativeContractKind nativeContract, string methodName, params object[] args)
 {
     return(runtime.CallContext(nativeContract.GetName(), methodName, args));
 }