From dbab69a92878ab27b9470bc26cfa6245e5a65bc9 Mon Sep 17 00:00:00 2001 From: enitrat Date: Wed, 2 Oct 2024 20:53:28 +0200 Subject: [PATCH] fix bug --- crates/utils/src/traits/bytes.cairo | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/utils/src/traits/bytes.cairo b/crates/utils/src/traits/bytes.cairo index d092b3ac..177b60a7 100644 --- a/crates/utils/src/traits/bytes.cairo +++ b/crates/utils/src/traits/bytes.cairo @@ -248,9 +248,6 @@ pub impl ToBytesImpl< fn to_be_bytes(self: T) -> Span { // U8 type is handled in another impl. let be_bytes = to_be_bytes_recursive(self); - if be_bytes.is_empty() { - return [0].span(); - } be_bytes.span() }