pub fn materialize(self, universe: &mut AccountInfoUniverse) -> TransactionToCommit {
        let (sender_index, txn_gen) = self.transaction_gen;
        let transaction = 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(
            Transaction::UserTransaction(transaction),
            account_states,
            events,
            self.gas_used,
            self.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 transaction = 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(
            Transaction::UserTransaction(transaction),
            account_states,
            events,
            self.gas_used,
            self.status,
        )
    }
pub fn materialize ( self , universe : & mut AccountInfoUniverse ) -> TransactionToCommit { let ( sender_index , txn_gen ) = self . transaction_gen ; let transaction = 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 ( Transaction :: UserTransaction ( transaction ) , account_states , events , self . gas_used , self . status , ) }
Materialize considering current states in the universe.
Materialize considering current states in the universe .
self
universe
&mut AccountInfoUniverse
self
universe
&mut AccountInfoUniverse