We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b70fa6 commit 47ecc5fCopy full SHA for 47ecc5f
fuzz/fuzz_targets/bdk_wallet.rs
@@ -166,9 +166,19 @@ fuzz_target!(|data: &[u8]| {
166
BlockHash::from_byte_array(NETWORK.chain_hash().to_bytes());
167
168
// generate fuzzed persist
169
- wallet
170
- .persist(&mut db_conn)
171
- .expect("It should always persist successfully!");
+ if let Err(e) = wallet.persist(&mut db_conn) {
+ assert!(matches!(e, bdk_wallet::rusqlite::Error::ToSqlConversionFailure(..)));
+ return;
172
+ };
173
+ // match wallet.persist(&mut db_conn) {
174
+ // Ok(_) => continue,
175
+ // Err(e) => {
176
+
177
+ // },
178
+ // }
179
+ // wallet
180
+ // .persist(&mut db_conn)
181
+ // .expect("It should always persist successfully!");
182
183
// generate fuzzed load
184
wallet = Wallet::load()
0 commit comments