Skip to content

Commit 50268b2

Browse files
committed
CLI and config fix
1 parent f021096 commit 50268b2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Nethermind/Nethermind.Cli/Modules/EthCliModule.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@ public string GetUncleCountByBlockNumber(string blockParameter)
100100
}
101101

102102
[CliFunction("eth", "getTransactionByBlockNumberAndIndex")]
103-
public string GetTransactionByBlockNumberAndIndex(string blockParameter, string index)
103+
public object GetTransactionByBlockNumberAndIndex(string blockParameter, string index)
104104
{
105-
return NodeManager.Post<string>("eth_getTransactionByBlockNumberAndIndex", blockParameter, index).Result;
105+
return NodeManager.Post<object>("eth_getTransactionByBlockNumberAndIndex", blockParameter, index).Result;
106106
}
107107

108108
[CliFunction("eth", "getTransactionReceipt")]
109-
public string GetTransactionReceipt(string txHash)
109+
public object GetTransactionReceipt(string txHash)
110110
{
111-
return NodeManager.Post<string>("eth_getTransactionReceipt", txHash).Result;
111+
return NodeManager.Post<object>("eth_getTransactionReceipt", txHash).Result;
112112
}
113113

114114
[CliFunction("eth", "getBalance")]

src/Nethermind/Nethermind.Runner/RunnerApp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected override (CommandLineApplication, Func<IConfigProvider>, Func<string>)
8181
var configurationType = typeof(IConfig);
8282
var configs = AppDomain.CurrentDomain.GetAssemblies()
8383
.SelectMany(a => a.GetTypes())
84-
.Where(t => configurationType.IsAssignableFrom(t) && t.IsInterface && t != configurationType)
84+
.Where(t => configurationType.IsAssignableFrom(t) && !t.IsInterface)
8585
.ToList();
8686

8787
var app = new CommandLineApplication {Name = "Nethermind.Runner"};

0 commit comments

Comments
 (0)