diff --git a/cw_monero/lib/api/wallet.dart b/cw_monero/lib/api/wallet.dart index 16bbe8018..51bd995ce 100644 --- a/cw_monero/lib/api/wallet.dart +++ b/cw_monero/lib/api/wallet.dart @@ -128,7 +128,7 @@ void setPasswordSync(String password) { monero.Wallet_setPassword(wptr!, password: password); final status = monero.Wallet_status(wptr!); - if (status == 0) { + if (status != 0) { throw Exception(monero.Wallet_errorString(wptr!)); } }