Skip to content

Commit e272eec

Browse files
committed
Allow an empty "device" key in HWW json to indicate a SWW.
1 parent 4b22f11 commit e272eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ga_auth_handlers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ namespace sdk {
106106
static std::shared_ptr<signer> make_login_signer(
107107
const network_parameters& net_params, const nlohmann::json& hw_device, const std::string& mnemonic)
108108
{
109-
if (hw_device.empty()) {
109+
if (hw_device.empty() || hw_device.value("device", nlohmann::json::object()).empty()) {
110110
return std::make_shared<software_signer>(net_params, mnemonic);
111111
}
112112
return std::make_shared<hardware_signer>(net_params, hw_device.at("device"));

0 commit comments

Comments
 (0)