|
@@ -166,7 +166,7 @@ namespace HyperCube.Models
|
|
|
|
|
|
}
|
|
|
|
|
|
- public async Task<string[]> AddContract(string name, string code, string bytecode)
|
|
|
+ public async Task<object[]> AddContract(string name, string code, string bytecode)
|
|
|
{
|
|
|
int id = (int)MySQLConnector.Instance().SQLInsert($"insert into smart_contracts (code, bytecode, name, date_add) values ('{code}','{bytecode}','{name}',NOW())");
|
|
|
|
|
@@ -181,7 +181,7 @@ namespace HyperCube.Models
|
|
|
SmartContract newctr = new SmartContract(id, name, code, bytecode);
|
|
|
contracts.Add(id, newctr);
|
|
|
contractNames.Add(name, newctr);
|
|
|
- return new string[]{ res, id.ToString()};
|
|
|
+ return new object[]{ res, newctr };
|
|
|
}
|
|
|
|
|
|
public async Task<string> ListAccounts()
|