diff --git a/Docs/Demos/NCTLWebExplorer/Pages/BlockDetail.razor b/Docs/Demos/NCTLWebExplorer/Pages/BlockDetail.razor
index a46c348..de3c3ad 100644
--- a/Docs/Demos/NCTLWebExplorer/Pages/BlockDetail.razor
+++ b/Docs/Demos/NCTLWebExplorer/Pages/BlockDetail.razor
@@ -43,7 +43,7 @@ else
}
else
{
- @_block.Proposer.PublicKey.FormatPublicKey()
+ @_block.Proposer.PublicKey.FormatPublicKey()
}
diff --git a/Docs/Demos/NCTLWebExplorer/Pages/GetEntity.razor.cs b/Docs/Demos/NCTLWebExplorer/Pages/GetEntity.razor.cs
index 4664e76..4b006eb 100644
--- a/Docs/Demos/NCTLWebExplorer/Pages/GetEntity.razor.cs
+++ b/Docs/Demos/NCTLWebExplorer/Pages/GetEntity.razor.cs
@@ -16,6 +16,8 @@ public enum AccountInfoMethod
public partial class GetEntity
{
+ [Inject] protected ILogger Logger { get; set; }
+
[Parameter] public string AccountPublicKey { get; set; }
private int _queryMethod;
@@ -54,6 +56,7 @@ async Task GetEntityBtnClicked()
if (key == null ||
(key is not IEntityIdentifier))
{
+ Logger.LogError($"Cannot convert '{EntityAddress}' to entity identifier. key: '{key}'");
ErrorMessage = "Wrong entity identifier value or format.";
return;
}
@@ -69,10 +72,12 @@ async Task GetEntityBtnClicked()
}
catch (RpcClientException e)
{
+ Logger.LogError($"RPC Error getting entity: {e.Message} - {e.Data}'");
ErrorMessage = e.Message + ".\n" + e.Data;
}
catch (Exception e)
{
+ Logger.LogError($"Error getting entity: {e.Message}'");
ErrorMessage = "Wrong entity identifier value or format.";
}
}
@@ -83,6 +88,7 @@ async Task GetEntityBtnClicked()
if (key == null ||
(key is not PublicKey && key is not AccountHashKey))
{
+ Logger.LogError($"Cannot convert '{EntityAddress}' to public key or account hash. key: '{key}'");
ErrorMessage = "Wrong entity identifier value or format.";
return;
}
@@ -104,10 +110,12 @@ async Task GetEntityBtnClicked()
}
catch (RpcClientException e)
{
+ Logger.LogError($"RPC Error getting account info: {e.Message} - {e.Data}'");
ErrorMessage = e.Message + ".\n" + e.Data;
}
catch (Exception e)
{
+ Logger.LogError($"Error getting account info: {e.Message}'");
ErrorMessage = "Wrong entity identifier value or format.";
}
}