fn record_era_info(&mut self, era_id: EraId, era_info: EraInfo) -> Result<(), Error> {
        if self.context.base_key() != Key::from(self.context.get_system_contract(AUCTION)?) {
            return Err(Error::InvalidContext);
        }

        if self.context.phase() != Phase::Session {
            return Ok(());
        }

        self.context.write_era_info(Key::EraInfo(era_id), era_info);

        Ok(())
    }
/// Records given auction info at a given era id
Records given auction info at a given era id
Records given auction info at a given era id
fn record_era_info(&mut self, era_id: EraId, era_info: EraInfo) -> Result<(), Error> {
        if self.context.base_key() != Key::from(self.context.get_system_contract(AUCTION)?) {
            return Err(Error::InvalidContext);
        }
        if self.context.phase() != Phase::Session {
            return Ok(());
        }
        self.context.write_era_info(Key::EraInfo(era_id), era_info);
        Ok(())
    }
fn record_era_info ( & mut self , era_id : EraId , era_info : EraInfo ) -> Result < ( ) , Error > { if self . context . base_key ( ) != Key :: from ( self . context . get_system_contract ( AUCTION ) ? ) { return Err ( Error :: InvalidContext ) ; } if self . context . phase ( ) != Phase :: Session { return Ok ( ( ) ) ; } self . context . write_era_info ( Key :: EraInfo ( era_id ) , era_info ) ; Ok ( ( ) ) }
Records given auction info at a given era id
Records given auction info at a given era id
&mut self
era_id
EraId
era_info
EraInfo
&mut self
era_id
EraId
era_info
EraInfo