|
@@ -144,6 +144,18 @@ namespace HyperCube.Models
|
|
|
return $"{name} {url}:{port}";
|
|
|
}
|
|
|
|
|
|
+ public async Task ChangeOwner(string ERC20Address, string contractAddress)
|
|
|
+ {
|
|
|
+ TransactionObject transObj = new TransactionObject();
|
|
|
+ transObj.from = address;
|
|
|
+ transObj.to = ERC20Address;// "0xe5D682717955d6C35d465A3485625C64655a04f4";
|
|
|
+ transObj.gas = "9000";
|
|
|
+ transObj.value = contractAddress;
|
|
|
+ transObj.data = await compileFunction($"function transferOwnership(address newOwner)");
|
|
|
+ var answer = await RunFunction2("eth_sendTransaction", transObj);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public async Task<string> Verify(AccountModel verifier, ArticleModel article)
|
|
|
{
|
|
|
Console.WriteLine($"Verify starting");
|