Skip to content

Commit

Permalink
style: Fix an warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Jul 15, 2024
1 parent de9a6a0 commit 3a727db
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/node/LibplanetConsole.Nodes/Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Node(IServiceProvider serviceProvider, ApplicationOptions options, ILogge
{
GenesisOptions = new GenesisOptions
{
GenesisKey = (AppPrivateKey)BlockChainUtility.AppProtocolKey,
GenesisKey = new(),
GenesisValidators = options.GenesisValidators,
Timestamp = DateTimeOffset.UtcNow,
},
Expand Down Expand Up @@ -429,8 +429,10 @@ void IActionRenderer.RenderBlockEnd(Block oldTip, Block newTip)

private static IActionLoader[] CollectActionLoaders(IServiceProvider serviceProvider)
{
var actionLoaderProviders = serviceProvider.GetService<IEnumerable<IActionLoaderProvider>>();
var actionLoaderList = actionLoaderProviders.Select(item => item.GetActionLoader()).ToList();
var actionLoaderProviders
= serviceProvider.GetService<IEnumerable<IActionLoaderProvider>>();
var actionLoaderList
= actionLoaderProviders.Select(item => item.GetActionLoader()).ToList();
actionLoaderList.Add(new AssemblyActionLoader(typeof(AssemblyActionLoader).Assembly));
return [.. actionLoaderList];
}
Expand Down

0 comments on commit 3a727db

Please sign in to comment.