diff --git a/keycard_wallet/tests/keycard_tests.sh b/keycard_wallet/tests/keycard_tests.sh index a2342d9c..2344f101 100755 --- a/keycard_wallet/tests/keycard_tests.sh +++ b/keycard_wallet/tests/keycard_tests.sh @@ -123,4 +123,4 @@ sleep 15 echo "priv-sender state (balance should have decreased by 5):" wallet account get --account-id "$PRIV_SENDER" echo "Keycard path 1 state (balance should have increased by 5):" -wallet account get --account-id "m/44'/60'/0'/0/1" \ No newline at end of file +wallet account get --account-id "m/44'/60'/0'/0/1" diff --git a/wallet/src/account_manager.rs b/wallet/src/account_manager.rs index a0825d04..f8d8bcbe 100644 --- a/wallet/src/account_manager.rs +++ b/wallet/src/account_manager.rs @@ -417,7 +417,7 @@ impl AccountManager { for path in keycard_paths { sigs.push(wallet.sign_message_for_path(py, path, &message_hash)?); } - drop(wallet.close_session(py)); + let _res = wallet.close_session(py); Ok(()) }) .map_err(anyhow::Error::from)?; diff --git a/wallet/src/signing.rs b/wallet/src/signing.rs index 2ebf0e0b..505dedd9 100644 --- a/wallet/src/signing.rs +++ b/wallet/src/signing.rs @@ -27,7 +27,7 @@ impl KeycardSessionContext { pub fn close(self, py: Python<'_>) { if let Some(w) = self.wallet { - drop(w.close_session(py)); + let _res = w.close_session(py); } } }