Commit 81f446af authored by Sergei Pepyakin's avatar Sergei Pepyakin Committed by Gav Wood
Browse files

Add comment about guarantees (#105)

parent 9cb36130
Pipeline #29003 passed with stages
in 13 minutes and 56 seconds
......@@ -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();
......
Supports Markdown
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