pub fn materialize(self, universe: &mut AccountInfoUniverse) -> TransactionToCommit {
        let (sender_index, txn_gen) = self.transaction_gen;
        let signed_txn = txn_gen.materialize(sender_index, universe).into_inner();

        let events = self
            .event_gens
            .into_iter()
            .map(|(index, event_gen)| event_gen.materialize(index, universe))
            .collect();
        // Account states must be materialized last, to reflect the latest account and event
        // sequence numbers.
        let account_states = self
            .account_state_gens
            .into_iter()
            .map(|(index, blob_gen)| {
                (
                    universe.get_account_info(index).address,
                    blob_gen.materialize(index, universe),
                )
            })
            .collect();

        TransactionToCommit::new(
            signed_txn,
            account_states,
            events,
            self.gas_used,
            self.major_status,
        )
    }
/// Materialize considering current states in the universe.
Materialize considering current states in the universe.
Materialize considering current states in the universe .
pub fn materialize(self, universe: &mut AccountInfoUniverse) -> TransactionToCommit {
        let (sender_index, txn_gen) = self.transaction_gen;
        let signed_txn = txn_gen.materialize(sender_index, universe).into_inner();
        let events = self
            .event_gens
            .into_iter()
            .map(|(index, event_gen)| event_gen.materialize(index, universe))
            .collect();
        // Account states must be materialized last, to reflect the latest account and event
        // sequence numbers.
        let account_states = self
            .account_state_gens
            .into_iter()
            .map(|(index, blob_gen)| {
                (
                    universe.get_account_info(index).address,
                    blob_gen.materialize(index, universe),
                )
            })
            .collect();
        TransactionToCommit::new(
            signed_txn,
            account_states,
            events,
            self.gas_used,
            self.major_status,
        )
    }
pub fn materialize ( self , universe : & mut AccountInfoUniverse ) -> TransactionToCommit { let ( sender_index , txn_gen ) = self . transaction_gen ; let signed_txn = txn_gen . materialize ( sender_index , universe ) . into_inner ( ) ; let events = self . event_gens . into_iter ( ) . map ( | ( index , event_gen ) | event_gen . materialize ( index , universe ) ) . collect ( ) ; // Account states must be materialized last, to reflect the latest account and event // sequence numbers. let account_states = self . account_state_gens . into_iter ( ) . map ( | ( index , blob_gen ) | { ( universe . get_account_info ( index ) . address , blob_gen . materialize ( index , universe ) , ) } ) . collect ( ) ; TransactionToCommit :: new ( signed_txn , account_states , events , self . gas_used , self . major_status , ) }
Materialize considering current states in the universe.
Materialize considering current states in the universe .
self
universe
&mut AccountInfoUniverse