Skip to content

Commit

Permalink
Fix more usages of zeroed
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Aug 19, 2024
1 parent 55baef2 commit bdc0c65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{
};

use dep::protocol_types::address::AztecAddress;
use dep::std::{test::OracleMock, unsafe::zeroed};
use dep::std::{test::OracleMock, mem::zeroed};

global new_value = 17;

Expand Down
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/utils/mod.nr
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn verify_collapse_hints<T, let N: u32>(
} else {
// BoundedVec assumes that the unused parts of the storage are zeroed out (e.g. in the Eq impl), so we make
// sure that this property holds.
assert_eq(collapsed.get_unchecked(i), std::unsafe::zeroed(), "Dirty collapsed vec storage");
assert_eq(collapsed.get_unchecked(i), std::mem::zeroed(), "Dirty collapsed vec storage");
}
}
// We now know that:
Expand Down

0 comments on commit bdc0c65

Please sign in to comment.