From 031b2047a692cd5b66cd40c3d5b9d58f8fce0e1c Mon Sep 17 00:00:00 2001 From: Filip Krawczyk Date: Thu, 4 Jan 2024 15:42:35 +0100 Subject: [PATCH] Add comment to ArrayU32AppendFelt --- src/common/array_append.cairo | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/array_append.cairo b/src/common/array_append.cairo index 387246e81..4a173f1f0 100644 --- a/src/common/array_append.cairo +++ b/src/common/array_append.cairo @@ -33,6 +33,8 @@ impl ArrayU32AppendU256 of ArrayAppendTrait { } } +// input's MSB is padded with 0s +// (internally felt252 is converted to u256) impl ArrayU32AppendFelt of ArrayAppendTrait { fn append_little_endian(ref self: Array, element: felt252) { self.append_little_endian(Into::::into(element));