|
@@ -74,6 +74,10 @@
|
|
|
<p>
|
|
|
Вознаграждение системы: овердофига <b>ETH</b>.
|
|
|
</p>
|
|
|
+ <p>
|
|
|
+ ID транзакции: @transactionId
|
|
|
+ </p>
|
|
|
+
|
|
|
</Body>
|
|
|
<Footer>
|
|
|
@*<button type="button" class="btn btn-primary">Save changes</button>*@
|
|
@@ -91,6 +95,7 @@
|
|
|
const string FOLDER_NAME = "articles_storage";
|
|
|
const long MAX_FILE_SIZE = 5120000; //bytes
|
|
|
|
|
|
+ string transactionId;
|
|
|
ArticleModel articleModelClone = new();
|
|
|
ArticleModel articleModel = new();
|
|
|
AccountModel currentAcc = new();
|
|
@@ -102,7 +107,7 @@
|
|
|
Modal modal { get; set; }
|
|
|
int editsCount;
|
|
|
|
|
|
- async Task Verify()
|
|
|
+ async Task<string> Verify()
|
|
|
{
|
|
|
///tmp
|
|
|
editsCount = await articleModel.GetEditsCount(currentAcc.UUID);
|
|
@@ -114,7 +119,7 @@
|
|
|
if (verifyContract != null)
|
|
|
{
|
|
|
Console.WriteLine($"VerifyContract found");
|
|
|
- await verifyContract.Run(articleModel);
|
|
|
+ return await verifyContract.Run(articleModel);
|
|
|
}
|
|
|
else
|
|
|
Console.WriteLine($"VerifyContract null");
|
|
@@ -124,6 +129,7 @@
|
|
|
{
|
|
|
Console.WriteLine(e.Message + "stack trace" + e.StackTrace);
|
|
|
}
|
|
|
+ return "Verify failed";
|
|
|
}
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
@@ -209,7 +215,8 @@
|
|
|
if (docID > 0)
|
|
|
{
|
|
|
status = propDict.Count > 0 ? "All changes saved, article has veryfied." : "Article verifyed without any changes.";
|
|
|
- await Verify();
|
|
|
+ transactionId = await Verify();
|
|
|
+ Console.WriteLine("transactionId found "+ transactionId);
|
|
|
}
|
|
|
else
|
|
|
{
|