fn bids(&self, nodes: &Nodes, era_number: u64) -> Bids {
        let correlation_id = Default::default();
        let state_root_hash = *self.headers[era_number as usize].state_root_hash();
        let request = GetBidsRequest::new(state_root_hash);
        let runner = nodes.values().next().expect("missing node");
        let engine_state = runner.participating().contract_runtime().engine_state();
        let bids_result = engine_state
            .get_bids(correlation_id, request)
            .expect("get_bids failed");
        bids_result.into_success().expect("no bids returned")
    }
/// Returns the set of bids in the auction contract at the end of the given era.
Returns the set of bids in the auction contract at the end of the given era.
Returns the set of bids in the auction contract at the end of the given era .
fn bids(&self, nodes: &Nodes, era_number: u64) -> Bids {
        let correlation_id = Default::default();
        let state_root_hash = *self.headers[era_number as usize].state_root_hash();
        let request = GetBidsRequest::new(state_root_hash);
        let runner = nodes.values().next().expect("missing node");
        let engine_state = runner.participating().contract_runtime().engine_state();
        let bids_result = engine_state
            .get_bids(correlation_id, request)
            .expect("get_bids failed");
        bids_result.into_success().expect("no bids returned")
    }
fn bids ( & self , nodes : & Nodes , era_number : u64 ) -> Bids { let correlation_id = Default :: default ( ) ; let state_root_hash = * self . headers [ era_number as usize ] . state_root_hash ( ) ; let request = GetBidsRequest :: new ( state_root_hash ) ; let runner = nodes . values ( ) . next ( ) . expect ( " " ) ; let engine_state = runner . participating ( ) . contract_runtime ( ) . engine_state ( ) ; let bids_result = engine_state . get_bids ( correlation_id , request ) . expect ( " " ) ; bids_result . into_success ( ) . expect ( " " ) }
Returns the set of bids in the auction contract at the end of the given era.
Returns the set of bids in the auction contract at the end of the given era .
&self
nodes
&Nodes
era_number
u64
&self
nodes
&Nodes
era_number
u64