Skip to content

Commit

Permalink
fixup! fixup! fixup! feat(tee_verifier_input_producer): use `FactoryD…
Browse files Browse the repository at this point in the history
…epsDal::get_factory_deps()`

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
  • Loading branch information
haraldh committed Jun 19, 2024
1 parent 4d9d584 commit d2a3c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/node/tee_verifier_input_producer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl TeeVerifierInputProducer {
.collect();

// `get_factory_deps()` returns the bytecode in chunks of `Vec<[u8; 32]>`,
// but pub `fn store_factory_dep(&mut self, hash: H256, bytecode: Vec<u8>)` in `InMemoryStorage` wants flat byte vecs.
// but `fn store_factory_dep(&mut self, hash: H256, bytecode: Vec<u8>)` in `InMemoryStorage` wants flat byte vecs.
pub fn into_flattened<T, const N: usize>(data: Vec<[T; N]>) -> Vec<T> {
let (ptr, len, cap) = {
let mut me = std::mem::ManuallyDrop::new(data);
Expand Down

0 comments on commit d2a3c18

Please sign in to comment.