We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d41a14 commit 9ef140bCopy full SHA for 9ef140b
crates/env/src/engine/on_chain/pallet_revive.rs
@@ -269,7 +269,11 @@ fn solidity_encode_bytes(
269
270
/// Returns the Solidity word padded length for the given input length (i.e. next multiple
271
/// of 32 for the given number).
272
-// `.div_ceil()` would allocate on the heap
+///
273
+/// # Developer Note
274
275
+// The implementation does not use `.div_ceil()`, as that function is more complex
276
+// and would use up more stack space.
277
#[allow(clippy::manual_div_ceil)]
278
#[inline(always)]
279
const fn solidity_padded_len(len: usize) -> usize {
0 commit comments