Skip to content

Commit

Permalink
Add comment about guarantees (paritytech#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepyakin authored and gavofyork committed Jan 23, 2019
1 parent 9cb3613 commit 81f446a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parachain/src/wasm_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 81f446a

Please sign in to comment.