pub fn commit(&mut self) -> &mut Self {
        let prestate_hash = self.post_state_hash.expect("Should have genesis hash");

        let effects = self.transforms.last().cloned().unwrap_or_default();

        self.commit_transforms(prestate_hash, effects)
    }
/// Commit effects of previous exec call on the latest post-state hash.
Commit effects of previous exec call on the latest post-state hash.
Commit effects of previous exec call on the latest post - state hash .
pub fn commit(&mut self) -> &mut Self {
        let prestate_hash = self.post_state_hash.expect("Should have genesis hash");
        let effects = self.transforms.last().cloned().unwrap_or_default();
        self.commit_transforms(prestate_hash, effects)
    }
pub fn commit ( & mut self ) -> & mut Self { let prestate_hash = self . post_state_hash . expect ( " " ) ; let effects = self . transforms . last ( ) . cloned ( ) . unwrap_or_default ( ) ; self . commit_transforms ( prestate_hash , effects ) }
Commit effects of previous exec call on the latest post-state hash.
Commit effects of previous exec call on the latest post - state hash .
&mut self
&mut self