We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b859361 commit fa2197cCopy full SHA for fa2197c
src/qt/test/rpcnestedtests.cpp
@@ -35,14 +35,16 @@ static RPCHelpMan rpcNestedTest_rpc()
35
}
36
37
static const CRPCCommand vRPCCommands[] = {
38
- {"test", &rpcNestedTest_rpc},
+ {"rpcNestedTest", &rpcNestedTest_rpc},
39
};
40
41
void RPCNestedTests::rpcNestedTests()
42
{
43
// do some test setup
44
// could be moved to a more generic place when we add more tests on QT level
45
- tableRPC.appendCommand("rpcNestedTest", &vRPCCommands[0]);
+ for (const auto& c : vRPCCommands) {
46
+ tableRPC.appendCommand(c.name, &c);
47
+ }
48
49
TestingSetup test;
50
m_node.setContext(&test.m_node);
0 commit comments