mirror of
https://github.com/logos-blockchain/lez-fuzzing.git
synced 2026-07-02 07:49:45 +00:00
fix: props panicking on empty account
This commit is contained in:
parent
86cc3977a2
commit
ce7c9f776f
@ -230,7 +230,7 @@ pub fn arb_privacy_preserving_tx(
|
||||
}
|
||||
let n_extra = (u8::arbitrary(u)? as usize) % 4;
|
||||
for _ in 0..n_extra {
|
||||
let id = if bool::arbitrary(u)? {
|
||||
let id = if !accounts.is_empty() && bool::arbitrary(u)? {
|
||||
// a known fuzz account — its post-state change is observable in the snapshot
|
||||
accounts[(u8::arbitrary(u)? as usize) % accounts.len()].account_id
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user