pub fn write_era_info(&mut self, key: Key, value: EraInfo) {
        if let Key::EraInfo(_) = key {
            self.tracking_copy
                .borrow_mut()
                .write(key, StoredValue::EraInfo(value));
        } else {
            panic!("Do not use this function for writing non-era-info keys")
        }
    }
/// Write an era info instance to the global state.
Write an era info instance to the global state.
Write an era info instance to the global state .
pub fn write_era_info(&mut self, key: Key, value: EraInfo) {
        if let Key::EraInfo(_) = key {
            self.tracking_copy
                .borrow_mut()
                .write(key, StoredValue::EraInfo(value));
        } else {
            panic!("Do not use this function for writing non-era-info keys")
        }
    }
pub fn write_era_info ( & mut self , key : Key , value : EraInfo ) { if let Key :: EraInfo ( _ ) = key { self . tracking_copy . borrow_mut ( ) . write ( key , StoredValue :: EraInfo ( value ) ) ; } else { panic ! ( " " ) } }
Write an era info instance to the global state.
Write an era info instance to the global state .
&mut self
key
Key
value
EraInfo
&mut self
key
Key
value
EraInfo