|
@@ -5,6 +5,7 @@ using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks;
|
|
using Console = HyperCube.Utils.AdvConsole;
|
|
using Console = HyperCube.Utils.AdvConsole;
|
|
|
|
+using HyperCube.Models;
|
|
|
|
|
|
namespace HyperCube
|
|
namespace HyperCube
|
|
{
|
|
{
|
|
@@ -13,7 +14,8 @@ namespace HyperCube
|
|
public static async Task<string> PostRequestAsync(string json)
|
|
public static async Task<string> PostRequestAsync(string json)
|
|
{
|
|
{
|
|
Console.WriteLine($"json req {json} len {json.Length}");
|
|
Console.WriteLine($"json req {json} len {json.Length}");
|
|
- var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://127.0.0.1:8545");
|
|
|
|
|
|
+ string url = $"http://{Blockchain.URLdefault}:{Blockchain.defaultPort}";
|
|
|
|
+ var httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
|
|
|
|
|
|
httpWebRequest.ContentType = "application/json";
|
|
httpWebRequest.ContentType = "application/json";
|
|
httpWebRequest.Method = "POST";
|
|
httpWebRequest.Method = "POST";
|