Function commit

Source
pub fn commit<'a, R, S, E>(
    environment: &'a R,
    store: &S,
    prestate_hash: Digest,
    effects: Effects,
) -> Result<Digest, E>
where R: TransactionSource<'a, Handle = S::Handle>, S: TrieStore<Key, StoredValue>, S::Error: From<R::Error>, E: From<R::Error> + From<S::Error> + From<Error> + From<CommitError> + From<Error>,
Expand description

Commit effects to the store.