From 622c6a8c3991b7ce5d5b62ce7415a1af969daa59 Mon Sep 17 00:00:00 2001 From: Alejandro Cabeza Romero Date: Mon, 4 May 2026 13:01:11 +0200 Subject: [PATCH] Add From Bytes to Vec. --- rust/logos-blockchain-circuits-types/src/native/bytes.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rust/logos-blockchain-circuits-types/src/native/bytes.rs b/rust/logos-blockchain-circuits-types/src/native/bytes.rs index 2f35fbb..fee97a5 100644 --- a/rust/logos-blockchain-circuits-types/src/native/bytes.rs +++ b/rust/logos-blockchain-circuits-types/src/native/bytes.rs @@ -24,6 +24,12 @@ impl From> for Bytes { } } +impl From for Vec { + fn from(value: Bytes) -> Self { + value.into_inner() + } +} + impl From for Bytes { fn from(mut ffi_value: ffi::Bytes) -> Self { let vec = if ffi_value.size == 0 || ffi_value.data.is_null() {