aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet2_api.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-05-01 15:32:52 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-05-01 15:32:52 -0500
commitc9b800a787cf2eba8803ddd03020e36d21c278b7 (patch)
tree1cedd9357896d95899a554f5ab3259d96275df92 /src/wallet/api/wallet2_api.h
parentMerge pull request #6444 (diff)
parenttrezor: adapt to new passphrase mechanism (diff)
downloadmonero-c9b800a787cf2eba8803ddd03020e36d21c278b7.tar.xz
Merge pull request #6446
e509ede trezor: adapt to new passphrase mechanism (ph4r05)
Diffstat (limited to 'src/wallet/api/wallet2_api.h')
-rw-r--r--src/wallet/api/wallet2_api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/api/wallet2_api.h b/src/wallet/api/wallet2_api.h
index 6309724a4..9c3df8988 100644
--- a/src/wallet/api/wallet2_api.h
+++ b/src/wallet/api/wallet2_api.h
@@ -400,8 +400,8 @@ struct WalletListener
/**
* @brief called by device when passphrase entry is needed
*/
- virtual optional<std::string> onDevicePassphraseRequest(bool on_device) {
- if (!on_device) throw std::runtime_error("Not supported");
+ virtual optional<std::string> onDevicePassphraseRequest(bool & on_device) {
+ on_device = true;
return optional<std::string>();
}