wallet: Pass ArgsManager into ExecuteWalletToolFunc instead of using global

This commit is contained in:
MarcoFalke 2020-12-17 19:18:34 +01:00
parent 143bd108ed
commit fa7dde1c41
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
3 changed files with 7 additions and 6 deletions

View file

@ -120,8 +120,9 @@ int main(int argc, char* argv[])
ECCVerifyHandle globalVerifyHandle;
ECC_Start();
if (!WalletTool::ExecuteWalletToolFunc(method, name))
if (!WalletTool::ExecuteWalletToolFunc(gArgs, method, name)) {
return EXIT_FAILURE;
}
ECC_Stop();
return EXIT_SUCCESS;
}