Add comment about guarantees (#105)

This commit is contained in:
Sergei Pepyakin
2019-01-23 14:21:54 +01:00
committed by Gav Wood
parent 1bd597a52e
commit 31a3a2e4df
+3
View File
@@ -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();