Skip to content
Snippets Groups Projects
Commit 31a3a2e4 authored by Sergei Pepyakin's avatar Sergei Pepyakin Committed by Gav Wood
Browse files

Add comment about guarantees (#105)

parent 1bd597a5
Branches
No related merge requests found
......@@ -230,6 +230,9 @@ pub fn validate_candidate<E: Externalities>(
};
// allocate call data in memory.
// we guarantee that:
// - `offset` has alignment at least of 8,
// - `len` is not zero.
let (offset, len) = {
let encoded_call_data = params.encode();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment